- 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): FileFile::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): voidexists(): boolcanExecute(): boolcanWrite(): boolcanRead(): boolgetName(): stringgetAbsolutePath(): stringgetCanonicalPath(): stringgetParent(): stringgetPath(): stringgetAbsoluteFile(): FilegetCanonicalFile(): FilegetParentFile(): Filemkdir(): boolmkdirs(): boolisFile(): boolisDirectory(): boolisAbsolute(): boolisHidden()
isHidden(): boolmatches(string $pattern): booldelete(): booldeleteOnExit(): voidcreateNewFile(bool $withDirs): boollastModified(): intlength(): intcrc32(): int|nulltoUrl(): stringhash(string $algorithm, callable $onProgress): null|stringrenameTo(string $newName): boolsetExecutable(bool $value, bool $ownerOnly): boolsetWritable(bool $value, bool $ownerOnly): boolsetReadable(bool $value, bool $ownerOnly): boolsetReadOnly(): boolsetLastModified(int $time): boolcompareTo(string|File $file): intfind(callable $filter): string[]findFiles(callable $filter): File[]open(string $flags): php\io\StreamparseAs(string $format, int $flags): mixedformatTo(mixed $value, string $format, int $flags): void__toString(): string