class FileInfo extends SplFileInfo

Class FileInfo.

Methods

__construct( string $file, string|null $relativePath = null, string|null $relativePathname = null, bool $resolvePath = true)

No description

static  FileInfo
createFromSplFileInfo( SplFileInfo $file)

No description

string
getSizeHuman( int $precision = 2)

No description

static  string
absoluteToRelativePath( string $filePath, string|null $relativeTo = null)

No description

Details

at line line 29
__construct( string $file, string|null $relativePath = null, string|null $relativePathname = null, bool $resolvePath = true)

Parameters

string $file
string|null $relativePath
string|null $relativePathname
bool $resolvePath

at line line 48
static FileInfo createFromSplFileInfo( SplFileInfo $file)

Parameters

SplFileInfo $file

Return Value

FileInfo

at line line 58
string getSizeHuman( int $precision = 2)

Parameters

int $precision

Return Value

string

at line line 74
static string absoluteToRelativePath( string $filePath, string|null $relativeTo = null)

Parameters

string $filePath
string|null $relativeTo

Return Value

string