Documentation

FilesystemOperator extends FilesystemReader, FilesystemWriter

This interface contains everything to read from and inspect a filesystem. All methods containing are non-destructive.

Table of Contents

LIST_DEEP  = true
LIST_SHALLOW  = false
copy()  : void
createDirectory()  : void
delete()  : void
deleteDirectory()  : void
directoryExists()  : bool
fileExists()  : bool
fileSize()  : int
has()  : bool
lastModified()  : int
listContents()  : DirectoryListing<string|int, StorageAttributes>
mimeType()  : string
move()  : void
read()  : string
readStream()  : resource
setVisibility()  : void
visibility()  : string
write()  : void
writeStream()  : void

Constants

Methods

copy()

public copy(string $source, string $destination[, array<string|int, mixed> $config = [] ]) : void
Parameters
$source : string
$destination : string
$config : array<string|int, mixed> = []
Tags
throws
UnableToCopyFile
throws
FilesystemException
Return values
void

move()

public move(string $source, string $destination[, array<string|int, mixed> $config = [] ]) : void
Parameters
$source : string
$destination : string
$config : array<string|int, mixed> = []
Tags
throws
UnableToMoveFile
throws
FilesystemException
Return values
void

write()

public write(string $location, string $contents[, array<string|int, mixed> $config = [] ]) : void
Parameters
$location : string
$contents : string
$config : array<string|int, mixed> = []
Tags
throws
UnableToWriteFile
throws
FilesystemException
Return values
void

writeStream()

public writeStream(string $location, mixed $contents[, array<string|int, mixed> $config = [] ]) : void
Parameters
$location : string
$contents : mixed
$config : array<string|int, mixed> = []
Tags
throws
UnableToWriteFile
throws
FilesystemException
Return values
void

Search results