- class
File
(php\io\File
) - package
std
- source
php/io/File.php
Description
Class File
File ::
createTemp()
File ::
listRoots()
- List the available filesystem roots.File ::
of()
->
__construct()
->
exists()
->
canExecute()
->
canWrite()
->
canRead()
->
getName()
->
getAbsolutePath()
->
getCanonicalPath()
->
getParent()
->
getPath()
->
getAbsoluteFile()
->
getCanonicalFile()
->
getParentFile()
->
mkdir()
->
mkdirs()
->
isFile()
->
isDirectory()
->
isAbsolute()
->
isHidden()
->
matches()
->
delete()
->
deleteOnExit()
->
createNewFile()
->
lastModified()
->
length()
->
crc32()
->
toUrl()
->
hash()
->
renameTo()
->
setExecutable()
->
setWritable()
->
setReadable()
->
setReadOnly()
->
setLastModified()
->
compareTo()
->
find()
->
findFiles()
->
open()
->
parseAs()
->
formatTo()
->
__toString()
File::createTemp(string $prefix, string $suffix, null|File|string $directory): File
File::listRoots(): File[]
List the available filesystem roots. Returns an array of objects denoting the available filesystem roots, or empty array if the set of roots could not be determined. The array will be empty if there are no filesystem roots.
File::of(string $path): File
__construct(string $path, null|string $child): void
exists(): bool
canExecute(): bool
canWrite(): bool
canRead(): bool
getName(): string
getAbsolutePath(): string
getCanonicalPath(): string
getParent(): string
getPath(): string
getAbsoluteFile(): File
getCanonicalFile(): File
getParentFile(): File
mkdir(): bool
mkdirs(): bool
isFile(): bool
isDirectory(): bool
isAbsolute(): bool
isHidden()
isHidden(): bool
matches(string $pattern): bool
delete(): bool
deleteOnExit(): void
createNewFile(bool $withDirs): bool
lastModified(): int
length(): int
crc32(): int|null
toUrl(): string
hash(string $algorithm, callable $onProgress): null|string
renameTo(string $newName): bool
setExecutable(bool $value, bool $ownerOnly): bool
setWritable(bool $value, bool $ownerOnly): bool
setReadable(bool $value, bool $ownerOnly): bool
setReadOnly(): bool
setLastModified(int $time): bool
compareTo(string|File $file): int
find(callable $filter): string[]
findFiles(callable $filter): File[]
open(string $flags): php\io\Stream
parseAs(string $format, int $flags): mixed
formatTo(mixed $value, string $format, int $flags): void
__toString(): string