0

I'm using flutter and I want to know the capcity size of a directory. this is my code :

  final String directory = (await getApplicationSupportDirectory()).path;
 

My question is how to get directory size ?

2

1 Answer 1

0

Use (await getApplicationSupportDirectory()).statSync() and watch the size value

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.