Local filesystem adapter.

Multiple adapters can be mounted to the same path, but only the last mounted adapter can be seen.
package filicious-core
author Christian Schiffler
author Tristan Lins
author Oliver Hoff

 Methods

Create a new local adapter using a local pathname as base pathname.

__construct(string $basePath) 

Parameters

$basePath

string

The local base pathname.

Exceptions

\Filicious\Exception\InvalidArgumentException

{@inheritdoc}

appendContents(\Filicious\Internals\Pathname $pathname, $content, $create) 

Parameters

$pathname

$content

$create

{@inheritdoc}

createDirectory(\Filicious\Internals\Pathname $pathname, $parents) 

Parameters

$pathname

$parents

{@inheritdoc}

createFile(\Filicious\Internals\Pathname $pathname, $parents) 

Parameters

$pathname

$parents

{@inheritdoc}

delete(\Filicious\Internals\Pathname $pathname, $recursive, $force) 

Parameters

$pathname

$recursive

$force

{@inheritdoc}

exists(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getAccessTime(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

Return the local base pathname.

getBasePath() : string

Returns

string

{@inheritdoc}

getContents(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getCreationTime(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getFreeSpace(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getGroup(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getHash(\Filicious\Internals\Pathname $pathname, $algorithm, $binary) 

Parameters

$pathname

$algorithm

$binary

{@inheritdoc}

getLinkTarget(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getMimeEncoding(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getMimeName(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getMimeType(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getMode(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getModifyTime(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getOwner(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getSize(\Filicious\Internals\Pathname $pathname, $recursive) 

Parameters

$pathname

$recursive

{@inheritdoc}

getStream(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getStreamURL(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

getTotalSpace(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

isDirectory(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

isExecutable(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

isFile(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

isReadable(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

isWritable(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

ls(\Filicious\Internals\Pathname $pathname) 

Parameters

$pathname

{@inheritdoc}

nativeCopy(\Filicious\Internals\Pathname $srcPathname, \Filicious\Internals\Pathname $dstPathname) 

Parameters

$srcPathname

$dstPathname

{@inheritdoc}

nativeMove(\Filicious\Internals\Pathname $srcPathname, \Filicious\Internals\Pathname $dstPathname) 

Parameters

$srcPathname

$dstPathname

{@inheritdoc}

setAccessTime(\Filicious\Internals\Pathname $pathname, \DateTime $time) 

Parameters

$pathname

$time

{@inheritdoc}

setContents(\Filicious\Internals\Pathname $pathname, $content, $create) 

Parameters

$pathname

$content

$create

{@inheritdoc}

setGroup(\Filicious\Internals\Pathname $pathname, $group) 

Parameters

$pathname

$group

{@inheritdoc}

setMode(\Filicious\Internals\Pathname $pathname, $mode) 

Parameters

$pathname

$mode

{@inheritdoc}

setModifyTime(\Filicious\Internals\Pathname $pathname, \DateTime $time) 

Parameters

$pathname

$time

{@inheritdoc}

setOwner(\Filicious\Internals\Pathname $pathname, $user) 

Parameters

$pathname

$user

{@inheritdoc}

touch(\Filicious\Internals\Pathname $pathname, \DateTime $time, \DateTime $atime, $create) 

Parameters

$pathname

$time

$atime

$create

{@inheritdoc}

truncate(\Filicious\Internals\Pathname $pathname, $size) 

Parameters

$pathname

$size

 Properties

 

$basePath

$basePath : string