Library
Class

Library\Helper\Filesystem

class Filesystem

File helper

As for all helpers, all methods are statics.

For convenience, the best practice is to use:

use Library\Helper\Filesystem as FilesystemHelper;

Methods

static string resolveRelatedPath(string $from, string $to)

Returns a relative path between two filesystem realpaths

static int getOctal(int $int)

Get safely the octal form of $int if necessary

Details

at line 47
static public string resolveRelatedPath(string $from, string $to)

Returns a relative path between two filesystem realpaths

Parameters

string $from The absolute path to work from
string $to The absolute path to resolve from $from

Return Value

string The relative path from $from to $to

at line 76
static public int getOctal(int $int)

Get safely the octal form of $int if necessary

Parameters

int $int

Return Value

int