Filesystem::delete()

bool delete(string|array $paths) Delete the file at a given path. Parameters string|array $paths Return Value bool

Filesystem::delete()

bool delete(string|array $paths) Delete the file at a given path. Parameters string|array $paths Return Value bool

Filesystem::copyDirectory()

bool copyDirectory(string $directory, string $destination, int $options = null) Copy a directory from one location to another. Parameters string $directory string $destination int $options Return Value bool

Filesystem::copy()

bool copy(string $path, string $target) Copy a file to a new location. Parameters string $path string $target Return Value bool

Filesystem::copy()

bool copy(string $from, string $to) Copy a file to a new location. Parameters string $from string $to Return Value bool

Filesystem::cleanDirectory()

bool cleanDirectory(string $directory) Empty the specified directory of all files and folders. Parameters string $directory Return Value bool

Filesystem::basename()

string basename(string $path) Extract the trailing name component from a file path. Parameters string $path Return Value string

Filesystem::append()

int append(string $path, string $data) Append to a file. Parameters string $path string $data Return Value int

Filesystem::append()

int append(string $path, string $data) Append to a file. Parameters string $path string $data Return Value int

Filesystem::allFiles()

array allFiles(string $directory, bool $hidden = false) Get all of the files from the given directory (recursive). Parameters string $directory bool $hidden Return Value array