File

File

class File extends SplFileInfo

A file in the file system.

Methods

__construct(string $path, bool $checkPath = true)

Constructs a new file from the given path.

string|null guessExtension()

Returns the extension based on the mime type.

string|null getMimeType()

Returns the mime type of the file.

File move(string $directory, string $name = null)

M