FilesystemAdapter::deleteDirectory()

bool deleteDirectory(string $directory) Recursively delete a directory. Parameters string $directory Return Value bool

FilesystemAdapter::delete()

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

FilesystemAdapter::copy()

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

FilesystemAdapter::append()

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

FilesystemAdapter::allFiles()

array allFiles(string|null $directory = null) Get all of the files from the given directory (recursive). Parameters string|null $directory Return Value array

FilesystemAdapter::allDirectories()

array allDirectories(string|null $directory = null) Get all (recursive) of the directories within a given directory. Parameters string|null $directory Return Value array

FilesystemAdapter

FilesystemAdapter class FilesystemAdapter implements Filesystem, Cloud (View source) Methods void __construct(FilesystemInterface $driver) Create a new filesystem adapter instance. 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, string $visibility = null) Write the contents of a file. string|false putFile(string $path, UploadedFile $file, string $visibility = nu

Filesystem::__callStatic()

static mixed __callStatic(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

Filesystem::__call()

mixed __call(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

Filesystem::type()

string type(string $path) Get the file type of a given file. Parameters string $path Return Value string