Stow: check if file is folder, todo
This commit is contained in:
parent
005c60362b
commit
e9336903d1
@ -61,6 +61,10 @@ foreach ($files as $file) {
|
|||||||
line("File $targetFile is already stowed from $stowFile");
|
line("File $targetFile is already stowed from $stowFile");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if(is_dir($targetFile)) {
|
||||||
|
line("File $targetFile is a folder, todo: recurse through existing folders");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (is_file($targetFile)) {
|
if (is_file($targetFile)) {
|
||||||
if ($backup) {
|
if ($backup) {
|
||||||
$backFile = $targetFile . '.bak';
|
$backFile = $targetFile . '.bak';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user