Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Oct 29, 2023
1 parent 2e00b83 commit 647851a
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,26 @@ $storage->uploadFile($file);

### List Files

You can list the files in the current location:
You can list or search the files in the current location:

```php
$files = $storage->listFiles();
```

```php
$files = $storage->listFiles('test*');
```

```php
$files = $storage->listFiles('*.pdf');
```

List all or search all directories and files together:

```php
$all = $storage->listAll();
```

### Copy or move file from one remote location to another

```php
Expand Down Expand Up @@ -290,12 +304,27 @@ $storage->rmdir('foo');

### List Directories

You can list the directories in the current location:
You can list or search the directories in the current location:

```php
$dirs = $storage->listDirs();
```

```php
$dirs = $storage->listDirs('foo*');
```

```php
$dirs = $storage->listDirs('*foo/');
```

List all or search all directories and files together:

```php
$all = $storage->listAll();
```


[Top](#pop-storage)

Helper Methods
Expand Down

0 comments on commit 647851a

Please sign in to comment.