[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Add a disk to the list of known disks (Unix only)
Source position: sysutils.pp line 41
function AddDisk( |
const path: String |
):Byte; |
On Linux both the DiskFreeand DiskSizefunctions need a file on the specified drive, since is required for the statfs system call.
These filenames are set in drivestr[0..26], and the first 4 have been preset to :
Drives 4..26 can be set by your own applications with the AddDiskcall.
The AddDiskcall adds Pathto the names of drive files, and returns the number of the disk that corresponds to this drive. If you add more than 21 drives, the count is wrapped to 4.
None.
|
Return the amount of free diskspace |
|
|
Return the total amount of diskspace. |