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

Parameters

string $file
string $relativePath

at line 35
string getRelativePath()

Returns the relative directory path.

Return Value

string

at line 44
string getRelativePathname()

Returns the relative path including file name.

Return Value

string

at line 55
string read()

Returns the contents of the file.

Return Value

string

Exceptions

IOException

at line 65
void write(string $content)

Writes the contents to the file.

Parameters

string $content

Return Value

void

Exceptions

IOException