Exemple #1
0
 /**
  * @desc Builds a Folder object.
  * @param string $path Path of the folder.
  */
 public function __construct($path)
 {
     parent::__construct(rtrim($path, '/'));
 }
Exemple #2
0
 /**
  * @desc Builds a File object.
  * @param string $path Path of the file you want to work with.
  * @param int $mode If you want to open it only to read it, use the flag File::READ, if it's to write it use the File::WRITE flag, you also can use the File::READ_WRITE flag.
  * @param bool $whenopen If you want to open the file now, use the File::DIRECT_OPENING constant, if you want to open it only when you will need it, use the File::LAZY_OPENING constant.
  */
 public function __construct($path)
 {
     parent::__construct($path);
 }