Count fix for file

This commit is contained in:
Dennis Eichhorn 2016-03-12 15:07:01 +01:00
parent f84fd11c86
commit cd4f9c3027

View File

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