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