Method | Description | |
---|---|---|
buildPath ( $key, $directory, $create ) : mixed | Build absolute path by given $key and $directory | |
ensureDirectoryExists ( string $directory, boolean $create = false ) | Make sure the target directory exists | |
getKey ( string $path, string $directory ) : string | Gets the key using file $path and storage $directory | |
normalizeDirectoryPath ( $path ) : string | Normalize path (strip '.', '. |
Method | Description | |
---|---|---|
createDirectory ( string $directory ) | Create directory | |
getAbsolutePrefix ( string $path ) : string | Returns the absolute prefix of the given path | |
normalizePath ( string $path ) : string | Normalizes the given path |
protected createDirectory ( string $directory ) | ||
$directory | string | Directory path to create |
public ensureDirectoryExists ( string $directory, boolean $create = false ) | ||
$directory | string | Path to check |
$create | boolean | (Optional) Create path if doesn't exist |
protected getAbsolutePrefix ( string $path ) : string | ||
$path | string | A normalized path |
return | string |
public normalizeDirectoryPath ( $path ) : string | ||
$path | ||
return | string |
protected normalizePath ( string $path ) : string | ||
$path | string | |
return | string |