Lines Matching refs:path
18 protected $path = ''; variable in splitbrain\\PHPArchive\\FileInfo
32 * @param string $path The path of the file, can also be set later through setPath()
34 public function __construct($path = '') argument
37 $this->setPath($path);
61 * @param string $path path to a file on the local file system
66 public static function fromPath($path, $as = '') argument
68 clearstatcache(false, $path);
70 if (!file_exists($path)) {
71 throw new FileInfoException("$path does not exist");
74 $stat = stat($path);
77 $file->setPath($path);
78 $file->setIsdir(is_dir($path));
79 $file->setMode(fileperms($path));
80 $file->setOwner(fileowner($path));
81 $file->setGroup(filegroup($path));
82 $file->setSize(filesize($path));
264 return $this->path;
268 * @param string $path
270 public function setPath($path) argument
272 $this->path = $this->cleanPath($path);
278 * @param string $path
281 protected function cleanPath($path) argument
283 $path = str_replace('\\', '/', $path);
284 $path = explode('/', $path);
286 foreach ($path as $p) {