Skip to content

Commit

Permalink
Add hidden files
Browse files Browse the repository at this point in the history
  • Loading branch information
fogelito committed Sep 3, 2024
1 parent 272eb45 commit 8d74182
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Storage/Device/Local.php
Original file line number Diff line number Diff line change
@@ -364,7 +364,6 @@ public function deletePath(string $path): bool

foreach ($files as $file) {
if (is_dir($file)) {
//$this->deletePath(\ltrim($file, $this->getRoot().DIRECTORY_SEPARATOR));
$this->deletePath(substr_replace($file, '', 0, strlen($this->getRoot())));
} else {
$this->delete($file, true);
@@ -523,6 +522,10 @@ public function getFiles(string $dir, int $max = self::MAX_PAGE_SIZE, string $co
$files[] = $file;
}

foreach (\glob($dir.DIRECTORY_SEPARATOR.'.[!.]*') as $file) {
$files[] = $file;
}

return $files;
}
}

0 comments on commit 8d74182

Please sign in to comment.