Recent

Author Topic: API: GetFreeSpace equivalent  (Read 188 times)

devEric69

  • Sr. Member
  • ****
  • Posts: 359
API: GetFreeSpace equivalent
« 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.
« Last Edit: August 08, 2020, 09:27:03 pm by devEric69 »
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

Handoko

  • Hero Member
  • *****
  • Posts: 3868
  • My goal: build my own game engine using Lazarus
Re: API: GetFreeSpace equivalent
« Reply #1 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.

Zaxxon

  • New Member
  • *
  • Posts: 23

 

TinyPortal © 2005-2018