FileInfo
class FileInfo extends SplFileInfo
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 31
string
getRelativePath()
Returns the relative directory path.
at line 40
string
getRelativePathname()
Returns the relative path including file name.
at line 51
string
read()
Returns the contents of the file.
at line 61
void
write(string $content)
Writes the contents to the file.