Authenticacion
This commit is contained in:
@ -30,9 +30,12 @@ class Filemanager {
|
||||
public function folder(string $name) {
|
||||
return new Filemanager($this->filesystem, $this->folders[$name]);
|
||||
}
|
||||
public function exists(string $filename) {
|
||||
return $this->filesystem->exists($this->fullPath($filename));
|
||||
}
|
||||
public function load(string $filename) {
|
||||
$filename = $this->fullPath($filename);
|
||||
if (!$this->filesystem->exists($filename)) {
|
||||
if (!$this->exists($filename)) {
|
||||
return false;
|
||||
}
|
||||
$file = new \SplFileInfo($filename);
|
||||
|
Reference in New Issue
Block a user