[Overview][Constants][Types][Procedures and functions] | Reference for unit 'BaseUnix' (#rtl) |
Unlink (i.e. remove) a file.
Source position: line 0
function FpUnlink( |
path: pChar |
):cint; |
path: AnsiString |
):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 |
No notes exist for this page yet.