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

How to get the size of a folder(directory) ? #77

Open
AhmedHelalAhmed opened this issue Sep 11, 2019 · 1 comment
Open

How to get the size of a folder(directory) ? #77

AhmedHelalAhmed opened this issue Sep 11, 2019 · 1 comment

Comments

@AhmedHelalAhmed
Copy link

AhmedHelalAhmed commented Sep 11, 2019

Hi,
I need to get the size of the directory (folder) in google storage
recently I get list of the files in a directory and send request to storage to get the size of that file
Storage ::disk('gcs')-> size('/path/to/file');
but it's too slow. Is there any other way?

@lengjunbin-trec
Copy link

I also have this problem.only get the folder size via count all objects size under this folder.

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

2 participants