M: Check for defined command line argument.
This commit is contained in:
@@ -31,9 +31,10 @@ $dw->onDirLeave(sub {
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (-e $ARGV[0]) {
|
my $path = cwd();
|
||||||
$dw->walk($ARGV[0]);
|
|
||||||
} else {
|
if ((defined $ARGV[0]) and (-e $ARGV[0])) {
|
||||||
my $cwd = getcwd();
|
$path = $ARGV[0];
|
||||||
$dw->walk($cwd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dw->walk($path);
|
||||||
|
|||||||
Reference in New Issue
Block a user