Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants