This commit is contained in:
Michael RICOIS 2014-12-17 10:01:13 +00:00
parent 98c3c7b6ed
commit 7a3052aea9

View File

@ -48,7 +48,7 @@ try {
//Options
array(
'help|?' => "Display help.",
'options|o' => " all: All files, [directory_name]: Files in this directory",
'options|o' => " all: All files, [directory_name]: Files in this directory",
)
);
$opts->parse();
@ -105,7 +105,7 @@ function removeFile($path, $filePattern)
$dir = realpath($path);
if (is_dir($dir)) {
if (stristr(PHP_OS, 'WIN')) {
$cmd = 'del '.$dir.DIRECTORY_SEPARATOR.$filePattern;
$cmd = 'del '.$dir.'/'.$filePattern;
} else {
/**
* To avoid too args error from rm command