Lazarus
Programming => General => Topic started by: devEric69 on August 08, 2020, 07:50:18 pm
-
Hello,
What is the Windows GetFreeSpace(0) equivalent routine in Lazarus (bridge routine, compatible with Windows and Linux)?
If such a routine doesn't exist, what is its equivalent in Linux?
Regards.
-
Maybe:
https://www.freepascal.org/docs-html/rtl/sysutils/diskfree.html
There also mentions, you should read AddDisk for more information about how to use it on Linux.
-
or this
https://www.freepascal.org/docs-html/rtl/unix/tstatfs.html (https://www.freepascal.org/docs-html/rtl/unix/tstatfs.html)