Format
This commit is contained in:
parent
98c3c7b6ed
commit
7a3052aea9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user