Hi Linux & Mac experts,
I am looking for functions similar to the Win API functions GetDiskFreeSpaceEx_ & GetVolumeInformation_.
Thanks.
GetDiskFreeSpace & GetVolumeInformation on Linux & Mac ?
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: GetDiskFreeSpace & GetVolumeInformation on Linux & Mac ?
I don't know - in Unix you would use something like:
So if df is also used by Linux (I think so), you can do something in PB with RunProgram()
This might help for the MAC:
http://developer.apple.com/library/mac/ ... til.8.html
Code: Select all
df -h
df -k
This might help for the MAC:
http://developer.apple.com/library/mac/ ... til.8.html
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
- 666
- Posts: 1033
- Joined: Mon Sep 01, 2003 2:33 pm
Re: GetDiskFreeSpace & GetVolumeInformation on Linux & Mac ?
statvfs() and fstatvfs() are probably what you would require. Just search for those in the "flavour of linux you use" man pages for info about the structures etc.
Re: GetDiskFreeSpace & GetVolumeInformation on Linux & Mac ?
Thanks IdeasVacuum,
Thanks LuCiFeR[SD]
remi_meier actually wrote a statvfs example:
PureBoard (german)

Thanks LuCiFeR[SD]
remi_meier actually wrote a statvfs example:
PureBoard (german)
