Property | Type | Description | |
---|---|---|---|
$filesystems | Kraken\Filesystem\FilesystemInterface[] |
Method | Description | |
---|---|---|
__construct ( Kraken\Filesystem\FilesystemInterface[] $filesystems = [] ) | ||
__destruct ( ) | ||
append ( $path, $contents ) | ||
copyDir ( $source, $destination ) | ||
copyFile ( $source, $destination ) | ||
create ( $path, $contents ) | ||
createDir ( $dirname, $visibility = Filesystem::VISIBILITY_DEFAULT ) | ||
createFile ( $path, $contents = '', $visibility = Filesystem::VISIBILITY_DEFAULT ) | ||
eraseDir ( $dirname = '' ) | ||
eraseFile ( $path ) | ||
exists ( $path ) | ||
existsFilesystem ( $prefix ) | ||
getContents ( $directory = '', $recursive = false, $filterPatterns = [] ) | ||
getDirectories ( $directory = '', $recursive = false, $filterPatterns = [] ) | ||
getFiles ( $directory = '', $recursive = false, $filterPatterns = [] ) | ||
getFilesystem ( $prefix ) | ||
getMimetype ( $path ) | ||
getSize ( $path ) | ||
getTimestamp ( $path ) | ||
getType ( $path ) | ||
getVisibility ( $path ) | ||
isDir ( $path ) | ||
isFile ( $path ) | ||
isPrivate ( $path = '' ) | ||
isPublic ( $path = '' ) | ||
mountFilesystem ( $prefix, Kraken\Filesystem\FilesystemInterface $filesystem ) | ||
mountFilesystems ( $filesystems ) | ||
move ( $source, $destination ) | ||
prepend ( $path, $contents ) | ||
read ( $path ) | ||
removeDir ( $dirname ) | ||
removeFile ( $path ) | ||
req ( $path ) | ||
setPrivate ( $path = '' ) | ||
setPublic ( $path = '' ) | ||
setVisibility ( $path, $visibility ) | ||
unmountFilesystem ( $prefix ) | ||
write ( $path, $contents ) |
Method | Description | |
---|---|---|
filterPrefix ( string $path ) : string[] | Filter $path in search for $prefix, if its present explode $path into $prefix and $newPath. |
public __construct ( Kraken\Filesystem\FilesystemInterface[] $filesystems = [] ) | ||
$filesystems | Kraken\Filesystem\FilesystemInterface[] |
public createDir ( $dirname, $visibility = Filesystem::VISIBILITY_DEFAULT ) |
public createFile ( $path, $contents = '', $visibility = Filesystem::VISIBILITY_DEFAULT ) |
public getContents ( $directory = '', $recursive = false, $filterPatterns = [] ) |
public getDirectories ( $directory = '', $recursive = false, $filterPatterns = [] ) |
public getFiles ( $directory = '', $recursive = false, $filterPatterns = [] ) |
public mountFilesystem ( $prefix, Kraken\Filesystem\FilesystemInterface $filesystem ) | ||
$filesystem | Kraken\Filesystem\FilesystemInterface |