[Overview][Constants][Types][Procedures and functions][Index] |
Unlink (i.e. remove) a file.
Source position: bunxh.inc line 77
function FpUnlink( |
path: PChar |
):cint; |
const path: RawByteString |
):cint; |
FpUnlink decreases the link count on file Path. Path can be of type AnsiString or PChar. If the link count is zero, the file is removed from the disk.
The function returns zero if the call was succesfull, a nonzero value indicates failure.
Note: There exist a portable alterative to erase files: system.erase. Please use fpUnlink only if you are writing Unix specific code. System.erase will work on all operating systems.
For an example, see FpLink.
Extended error information can be retrieved using fpGetErrno.
|
Create a hard link to a file |
|
|
Create a symbolic link |