Include hidden files when changing permissions in restore
This commit is contained in:
@@ -897,7 +897,9 @@ class workspaceTools {
|
||||
if ($chgrp === false || $chmod === false || $chown === false)
|
||||
CLI::logging (CLI::error ("Failed to set permissions for $filename") . "\n");
|
||||
if (is_dir($filename)) {
|
||||
foreach (glob($filename . "/*") as $item) {
|
||||
foreach (array_merge(glob($filename . "/*"), glob($filename . "/.*")) as $item) {
|
||||
if (basename($item) == "." || basename($item) == "..")
|
||||
continue;
|
||||
workspaceTools::dirPerms($item, $owner, $group, $perms);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user