Recent

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

devEric69

  • Hero Member
  • *****
  • Posts: 648
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: 5131
  • 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: 30

 

TinyPortal © 2005-2018