Solutionunvalidated
the two solutions you can do is either invoke ProcessBuilder and call `du`/`stat` — Java doesn't have access to `st_blocks` and `st_blksize`. Tension: the two solutions you can do is either invoke ProcessBuilder and call `du`/`stat` or build a lib/so/dll in C and call it from Java using JNI.
5836264b-c1be-4af3-80e0-fa96dd060e3a
the two solutions you can do is either invoke ProcessBuilder and call du/stat — Java doesn't have access to st_blocks and st_blksize. Tension: the two solutions you can do is either invoke ProcessBuilder and call du/stat or build a lib/so/dll in C and call it from Java using JNI.