projects
/
cil.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
804fbb4
)
checking for a directory, not a file
author
yanick@babyl.dyndns.org
<yanick@babyl.dyndns.org>
Thu, 24 Jul 2008 03:07:33 +0000
(23:07 -0400)
committer
Andrew Chilton
<andychilton@gmail.com>
Thu, 24 Jul 2008 15:29:19 +0000
(
03:29
+1200)
Signed-off-by: Yanick Champoux <yanick@babyl.dyndns.org>
lib/CIL.pm
patch
|
blob
|
history
diff --git
a/lib/CIL.pm
b/lib/CIL.pm
index 732393ad754349ad424f8a245831b4991b82694a..42451a26f8933f9c799d2f6bfcd1e4e849fc8b95 100644
(file)
--- a/
lib/CIL.pm
+++ b/
lib/CIL.pm
@@
-326,13
+326,12
@@
sub file_exists {
}
sub dir_exists {
- my ($self, $filename) = @_;
- if ( $self->vcs_revision ) {
- $self->vcs->dir_exists($self->vcs_revision, $filename);
- }
- else {
- -f $filename;
- }
+ my ($self, $dir) = @_;
+
+ return $self->vcs_revision
+ ? $self->vcs->dir_exists($self->vcs_revision, $dir)
+ : -d $dir
+ ;
}
sub parse_cil_file {