Commit 4aa9820c authored by Ghislain Loas's avatar Ghislain Loas

Revert "add methods to disk"

This reverts commit 31d15d20
parent 31d15d20
Pipeline #1743 passed with stage
in 5 seconds
......@@ -74,42 +74,4 @@ class Storm_FileSystem_Disk {
asort($files);
return $files;
}
public function directoriesAt($path) {
if (!file_exists($path))
return [];
$dirs = [];
foreach (new DirectoryIterator($path) as $entry) {
if ($entry->isDir() && !$entry->isDot())
$dirs[$entry->getFilename()] = clone($entry);
}
ksort($dirs);
return $dirs;
}
public function filesAt($path) {
if (!file_exists($path))
return [];
$files = [];
foreach (new DirectoryIterator($path) as $entry) {
if ($entry->isFile() && !$entry->isDot())
$files[$entry->getFilename()] = clone($entry);
}
ksort($files);
return $files;
}
public function directoryAt($path) {
$item = new DirectoryIterator($path);
if($item->isDir() && $item->isDot())
return clone($item);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment