diff --git a/System/File/File.php b/System/File/File.php index f7e8254a5..b6dedd0b9 100644 --- a/System/File/File.php +++ b/System/File/File.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -namespace phpOMS\System; +namespace phpOMS\System\File; /** * Filesystem class. @@ -33,7 +33,8 @@ class File extends FileAbstract public function __construct(string $path) { parent::__constrct($path); - + $this->count = 1; + if(file_exists($this->path)) { $this->index(); }