depage-fs
Loading...
Searching...
No Matches
FsFile.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Depage\Fs;
4
5
class
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 : */
Depage\Fs\Exceptions\FsException
Definition
FsException.php:5
Depage\Fs\FsFile
Definition
FsFile.php:6
Depage\Fs\FsFile\rmdir
rmdir($url)
Hook, allows overriding of rmdir function.
Definition
FsFile.php:17
Depage\Fs\FsFile\setBase
setBase($path)
Definition
FsFile.php:7
Depage\Fs\Fs
Definition
Fs.php:6
Depage\Fs\Fs\$url
$url
Definition
Fs.php:9
FsFile.php
Generated on
for depage-fs by
doxygen
1.14.0
For an overview of all docs, go to
docs.depage.net