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 20
__construct(string $file, string $relativePath = '')
No description
at line 32
string
getRelativePath()
Returns the relative directory path.
at line 41
string
getRelativePathname()
Returns the relative path including file name.
at line 52
string
read()
Returns the contents of the file.
at line 62
void
write(string $content)
Writes the contents to the file.