Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jorisvanandel's avatar

Flysystem getSize doesn't work on directory

I have a Digital Ocean space and I try to run getSize() on a directory but it returns false. When I run it on a file it does return the size.

Is there no way to get the size of a directory instead of a file?

0 likes
1 reply

Please or to participate in this conversation.