FileInfo
final class FileInfo extends SplFileInfo
internal | do not create instances directly |
Represents the file or directory returned by the Finder.
Methods
__construct(string $file, string $relativePath = '')
No description
string
getRelativePath()
Returns the relative directory path.
string
getRelativePathname()
Returns the relative path including file name.
string
read()
Returns the contents of the file.
void
write(string $content)
Writes the contents to the file.
Details
at line 24
__construct(string $file, string $relativePath = '')
No description
at line 35
string
getRelativePath()
Returns the relative directory path.
at line 44
string
getRelativePathname()
Returns the relative path including file name.
at line 55
string
read()
Returns the contents of the file.
at line 65
void
write(string $content)
Writes the contents to the file.