Beispiel #1
0
 /**
  * Конструктор
  *
  * @param  $object
  */
 public function __construct($object)
 {
     if (!($stat = Core_Types::is_resource($object) ? @fstat($object) : @stat((string) $object))) {
         throw new IO_FS_StatException($object);
     }
     foreach ($stat as $k => $v) {
         switch ($k) {
             case 'atime':
             case 'mtime':
             case 'ctime':
                 $this->stat[$k] = Time::DateTime($v);
                 break;
             default:
                 $this->stat[$k] = $v;
         }
     }
 }