Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage::cloud()->listContents() Not working for more than 2k directory #92

Open
daptontdev1 opened this issue Dec 3, 2020 · 3 comments

Comments

@daptontdev1
Copy link

I am getting fail most of the time for the 2k directory when I am trying to check the directory already exists? but getting a fail response

   $contents = collect(Storage::listContents());
    $dir = $contents->where('type', '=', 'dir')->where('filename', '=', $directory)->first();
    if (! $dir) {
        // Create parent dir
        Storage::makeDirectory($path.'/'.$directory);
     }
@ivanvermeyen
Copy link
Owner

Do you get a specific exception or error message?
My guess would be that the request takes too long and times out?
I think for bigger projects a more direct use of the Google API would be better...

@daptontdev1
Copy link
Author

Not getting a specific error. Yes, it takes too long and it might be timed out. I am going with Google API. Thanks a lot for your feedback.

@pankajthakur007
Copy link

@daptontdev1 you need the use pagination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants