interface FilesystemInterface (Voir la source)

Méthodes

mixed
store(UploadFile $file, string $location = null, array $option = [])

Store directly the upload file

bool
append(string $file, string $content)

Write following a file specify

bool
prepend(string $file, string $content)

Write to the beginning of a file specify

bool
put(string $file, string $content)

Put other file content in given file

bool
delete(string $file)

Delete file

array
files(string $dirname)

Alias sur readInDir

array
directories(string $dirname)

Read the contents of the file

bool
makeDirectory(string $dirname, int $mode = 0777)

Create a directory

null|string
get(string $filename)

Get file content

bool
copy(string $target, string $source)

Copy the contents of a source file to a target file.

move(string $target, string $source)

Rénme or move a source file to a target file.

bool
exists(string $filename)

Check the existence of a file

bool
isFile(string $filename)

isFile alias of is_file.

bool
isDirectory(string $dirname)

isDirectory alias of is_dir.

string
path(string $filename)

Resolves a path.

Détails

mixed store(UploadFile $file, string $location = null, array $option = [])

Store directly the upload file

Paramètres

UploadFile $file
string $location
array $option

Valeur de retour

mixed

Exceptions

InvalidArgumentException

bool append(string $file, string $content)

Write following a file specify

Paramètres

string $file
string $content

Valeur de retour

bool

bool prepend(string $file, string $content)

Write to the beginning of a file specify

Paramètres

string $file
string $content

Valeur de retour

bool

Exceptions

bool put(string $file, string $content)

Put other file content in given file

Paramètres

string $file
string $content

Valeur de retour

bool

bool delete(string $file)

Delete file

Paramètres

string $file

Valeur de retour

bool

array files(string $dirname)

Alias sur readInDir

Paramètres

string $dirname

Valeur de retour

array

array directories(string $dirname)

Read the contents of the file

Paramètres

string $dirname

Valeur de retour

array

bool makeDirectory(string $dirname, int $mode = 0777)

Create a directory

Paramètres

string $dirname
int $mode

Valeur de retour

bool

null|string get(string $filename)

Get file content

Paramètres

string $filename

Valeur de retour

null|string

bool copy(string $target, string $source)

Copy the contents of a source file to a target file.

Paramètres

string $target
string $source

Valeur de retour

bool

move(string $target, string $source)

Rénme or move a source file to a target file.

Paramètres

string $target
string $source

bool exists(string $filename)

Check the existence of a file

Paramètres

string $filename

Valeur de retour

bool

bool isFile(string $filename)

isFile alias of is_file.

Paramètres

string $filename

Valeur de retour

bool

bool isDirectory(string $dirname)

isDirectory alias of is_dir.

Paramètres

string $dirname

Valeur de retour

bool

string path(string $filename)

Resolves a path.

Give the absolute path of a path

Paramètres

string $filename

Valeur de retour

string