Unlink (i.e. remove) a file.
Source position: bunxh.inc line 82
function FpUnlink( |
path: PAnsiChar |
):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 successful, a nonzero value indicates failure.
Note: There exist a portable alternative 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. |