interface Filesystem (View source)
VISIBILITY_PUBLIC | The public visibility setting. |
VISIBILITY_PRIVATE | The private visibility setting. |
bool | exists(string $path) Determine if a file exists. | |
string | get(string $path) Get the contents of a file. | |
bool | put(string $path, string|resource $contents, mixed $options = []) Write the contents of a file. | |
string | getVisibility(string $path) Get the visibility for the given path. | |
void | setVisibility(string $path, string $visibility) Set the visibility for the given path. | |
int | prepend(string $path, string $data) Prepend to a file. | |
int | append(string $path, string $data) Append to a file. | |
bool | delete(string|array $paths) Delete the file at a given path. | |
bool | copy(string $from, string $to) Copy a file to a new location. | |
bool | move(string $from, string $to) Move a file to a new location. | |
int | size(string $path) Get the file size of a given file. | |
int | lastModified(string $path) Get the file's last modification time. | |
array | files(string|null $directory = null, bool $recursive = false) Get an array of all files in a directory. | |
array | allFiles(string|null $directory = null) Get all of the files from the given directory (recursive). | |
array | directories(string|null $directory = null, bool $recursive = false) Get all of the directories within a given directory. | |
array | allDirectories(string|null $directory = null) Get all (recursive) of the directories within a given directory. | |
bool | makeDirectory(string $path) Create a directory. | |
bool | deleteDirectory(string $directory) Recursively delete a directory. |
Determine if a file exists.
Get the contents of a file.
Write the contents of a file.
Get the visibility for the given path.
Set the visibility for the given path.
Prepend to a file.
Append to a file.
Delete the file at a given path.
Copy a file to a new location.
Move a file to a new location.
Get the file size of a given file.
Get the file's last modification time.
Get an array of all files in a directory.
Get all of the files from the given directory (recursive).
Get all of the directories within a given directory.
Get all (recursive) of the directories within a given directory.
Create a directory.
Recursively delete a directory.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Contracts/Filesystem/Filesystem.html