FileSystem
abstract class FileSystem
Class FileSystem
Methods
static bool
isAbsPath(string $path)
No description
static bool
isAbsolutePath(string $file)
Returns whether the file path is an absolute path.
static string
pathFormat(string $dirName)
转换为标准的路径结构
string
clearPharPath(string $path)
No description
static array|string
exists(string $file, null|string $type = null)
检查文件/夹/链接是否存在
static
check(string $file, null|string|array $ext = null)
No description
static
rename(string $origin, string $target, bool $overwrite = false)
Renames a file or a directory.
static bool
isReadable(string $filename)
Tells whether a file exists and is readable.
static
static
chmod(string|array|Traversable $files, int $mode, int $umask = 00, bool $recursive = false)
Change mode for an array of files or directories.
static
chown(string|array|Traversable $files, string $user, bool $recursive = false)
Change the owner of an array of files or directories.
static RecursiveIteratorIterator
getIterator(string $srcDir, callable $filter)
No description
static bool
chmodDir(string $path, int $mode = 0664)
No description
static string
availableSpace(string $dir = '.')
No description
static string
countSpace(string $dir = '.')
No description
static int
pathModeInfo(string $file_path)
文件或目录权限检查函数
Details
at line 27
static bool
isAbsPath(string $path)
at line 49
static bool
isAbsolutePath(string $file)
Returns whether the file path is an absolute path.
at line 64
static string
pathFormat(string $dirName)
转换为标准的路径结构
at line 75
string
clearPharPath(string $path)
at line 94
static array|string
exists(string $file, null|string $type = null)
检查文件/夹/链接是否存在
at line 119
static
check(string $file, null|string|array $ext = null)
at line 145
static
rename(string $origin, string $target, bool $overwrite = false)
Renames a file or a directory.
at line 164
static bool
isReadable(string $filename)
Tells whether a file exists and is readable.
at line 179
static
mkdir(string|array|Traversable $dirs, int $mode = 0777)
Creates a directory recursively.
at line 210
static
chmod(string|array|Traversable $files, int $mode, int $umask = 00, bool $recursive = false)
Change mode for an array of files or directories.
at line 231
static
chown(string|array|Traversable $files, string $user, bool $recursive = false)
Change the owner of an array of files or directories.
at line 255
static RecursiveIteratorIterator
getIterator(string $srcDir, callable $filter)
at line 272
static bool
chmodDir(string $path, int $mode = 0664)
at line 305
static string
availableSpace(string $dir = '.')
at line 322
static string
countSpace(string $dir = '.')
at line 342
static int
pathModeInfo(string $file_path)
文件或目录权限检查函数