From 2747eed5f8888ad0661f257a9d2f471f6ab5ddce Mon Sep 17 00:00:00 2001 From: Nick Sagona Date: Sat, 28 Oct 2023 23:13:21 -0500 Subject: [PATCH] Update README --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 00b063c..7309f09 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ $storage = Storage::createS3('AWS_BUCKET', new S3\S3Client([ ### Setting up the Local adapter -The local adapter allows simply management of files and folders to the local disk of the +The local adapter allows simple management of files and folders on the local disk of the application using the same interface as the other adapters. This can be useful for local development and testing, before switching to one of the enterprise adapters for production. @@ -183,6 +183,14 @@ $storage->uploadFiles($_FILES); $storage->uploadFile($file); ``` +### List Files + +You can list the files in the current location: + +```php +$files = $storage->listFiles(); +``` + ### Copy or move file from one remote location to another ```php @@ -280,6 +288,14 @@ $storage->chdir('foo'); $storage->rmdir('foo'); ``` +### List Directories + +You can list the directories in the current location: + +```php +$dirs = $storage->listDirs(); +``` + [Top](#pop-storage) Helper Methods