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

Parameters

string $file
string $relativePath

at line 31
string getRelativePath()

Returns the relative directory path.

Return Value

string

at line 40
string getRelativePathname()

Returns the relative path including file name.

Return Value

string

at line 51
string read()

Returns the contents of the file.

Return Value

string

Exceptions

IOException

at line 61
void write(string $content)

Writes the contents to the file.

Parameters

string $content

Return Value

void

Exceptions

IOException