Code: Select all
commons-io
commons-io
2.18.0
Code: Select all
Path p = Path.of ("mydir");
long sz = FileUtils.sizeOf (p.toFile ());
du -sch mydir
< /code>
Du gibt mir 3.0m, aber Java sagt mir 2168168 (das ist etwas mehr als 2 MB). < /p>
Wo ist das Problem hier? /P>