depage-fs
Loading...
Searching...
No Matches
FsFile.php
Go to the documentation of this file.
1<?php
2
3namespace Depage\Fs;
4
5class FsFile extends Fs
6{
7 protected function setBase($path)
8 {
9 $realPath = realpath($path);
10
11 if ($realPath === false) {
12 throw new Exceptions\FsException('Invalid path: "' . $path . '"');
13 }
14
15 return parent::setBase($realPath);
16 }
17 protected function rmdir($url)
18 {
19 // workaround, rmdir does not support file stream wrappers <= PHP 5.6.2
20 return parent::rmdir(preg_replace(';^file://;', '', $url));
21 }
22}
23
24/* vim:set ft=php sw=4 sts=4 fdm=marker : */
rmdir($url)
Hook, allows overriding of rmdir function.
Definition FsFile.php:17
setBase($path)
Definition FsFile.php:7