Skip to content

Commit

Permalink
change readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yaza-putu committed Dec 4, 2022
1 parent 7c1caaa commit 8b05111
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,19 @@ Gdrive::all('/');
// or
Gdrive::all('foldername');
```
output
```php
Illuminate\Support\Collection {#804 ▼ // app/Http/Controllers/UploadController.php:70
#items: array:3 [▼
0 => League\Flysystem\DirectoryAttributes {#798 ▶}
1 => League\Flysystem\FileAttributes {#796 ▶}
2 => League\Flysystem\DirectoryAttributes {#783 ▶}
]
#escapeWhenCastingToString: false
}
```


- all folder & file with sub folder
```php
use Yaza\LaravelGoogleDriveStorage\Gdrive;
Expand All @@ -136,7 +149,17 @@ Gdrive::all('/', true);
// or
Gdrive::all('foldername', true);
```

output
```php
Illuminate\Support\Collection {#804 ▼ // app/Http/Controllers/UploadController.php:70
#items: array:3 [▼
0 => League\Flysystem\DirectoryAttributes {#798 ▶}
1 => League\Flysystem\FileAttributes {#796 ▶}
2 => League\Flysystem\DirectoryAttributes {#783 ▶}
]
#escapeWhenCastingToString: false
}
```

## Limitations
Using display paths as identifiers for folders and files requires them to be unique. Unfortunately Google Drive allows users to create files and folders with same (displayed) names. In such cases when unique path cannot be determined this adapter chooses the oldest (first) instance. In case the newer duplicate is a folder and user puts a unique file or folder inside the adapter will be able to reach it properly (because full path is unique).
Expand Down

0 comments on commit 8b05111

Please sign in to comment.