From cd4f9c302764ea29906d32cca11de18cf7e32262 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 12 Mar 2016 15:07:01 +0100 Subject: [PATCH] Count fix for file --- System/File/File.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); }