Property | Type | Description | |
---|---|---|---|
$fs | League\Flysystem\FilesystemInterface |
Method | Description | |
---|---|---|
__construct ( League\Flysystem\AdapterInterface $adapter ) | ||
__destruct ( ) | ||
append ( $path, $contents ) | ||
copyDir ( $source, $destination ) | ||
copyFile ( $source, $destination ) | ||
create ( $path, $contents ) | ||
createDir ( $dirname, $visibility = self::VISIBILITY_DEFAULT ) | ||
createFile ( $path, $contents = '', $visibility = self::VISIBILITY_DEFAULT ) | ||
eraseDir ( $dirname = '' ) | ||
eraseFile ( $path ) | ||
exists ( $path ) | ||
getContents ( $directory = '', $recursive = false, $filterPatterns = [] ) | ||
getDirectories ( $directory = '', $recursive = false, $filterPatterns = [] ) | ||
getFiles ( $directory = '', $recursive = false, $filterPatterns = [] ) | ||
getMimetype ( $path ) | ||
getSize ( $path ) | ||
getTimestamp ( $path ) | ||
getType ( $path ) | ||
getVisibility ( $path = '' ) | ||
isDir ( $path ) | ||
isFile ( $path ) | ||
isPrivate ( $path = '' ) | ||
isPublic ( $path = '' ) | ||
move ( $source, $destination ) | ||
prepend ( $path, $contents ) | ||
read ( $path ) | ||
removeDir ( $dirname ) | ||
removeFile ( $path ) | ||
req ( $path ) | ||
setPrivate ( $path = '' ) | ||
setPublic ( $path = '' ) | ||
setVisibility ( $path, $visibility ) | ||
write ( $path, $contents ) |
Method | Description | |
---|---|---|
prepareConfig ( $visibility ) : string[] | Return array config with visibility setting. |
Method | Description | |
---|---|---|
ensuredCopyDir ( string $source, string $destination ) | Copy a directory. | |
ensuredEraseDir ( string $dirname ) | Erase a directory. | |
ensuredRemoveDir ( string $dirname ) | Remove a directory. | |
match ( string $pattern, string $name ) : boolean | Try to match name using specified pattern. |
public __construct ( League\Flysystem\AdapterInterface $adapter ) | ||
$adapter | League\Flysystem\AdapterInterface |
public createFile ( $path, $contents = '', $visibility = self::VISIBILITY_DEFAULT ) |
public getContents ( $directory = '', $recursive = false, $filterPatterns = [] ) |
public getDirectories ( $directory = '', $recursive = false, $filterPatterns = [] ) |
public getFiles ( $directory = '', $recursive = false, $filterPatterns = [] ) |
protected prepareConfig ( $visibility ) : string[] | ||
$visibility | ||
return | string[] |