Lazarus

Programming => General => Topic started by: devEric69 on August 08, 2020, 07:50:18 pm

Title: API: GetFreeSpace equivalent
Post 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.
Title: Re: API: GetFreeSpace equivalent
Post by: Handoko on August 08, 2020, 07:55:43 pm
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.
Title: Re: API: GetFreeSpace equivalent
Post by: Zaxxon on August 08, 2020, 07:57:25 pm
or this
https://www.freepascal.org/docs-html/rtl/unix/tstatfs.html (https://www.freepascal.org/docs-html/rtl/unix/tstatfs.html)
TinyPortal © 2005-2018