plibsys 0.0.5
|
File operations. More...
Go to the source code of this file.
Macros | |
#define | P_DIR_SEPARATOR "\\" |
A directory separator. | |
Functions | |
P_LIB_API pboolean | p_file_is_exists (const pchar *file) |
Checks whether a file exists or not. | |
P_LIB_API pboolean | p_file_remove (const pchar *file, PError **error) |
Removes a file from the disk. | |
File operations.
To check file existance use p_file_is_exists(). To remove an exisiting file use p_file_remove().
P_DIR_SEPARATOR provides a platform independent directory separator symbol which you can use to form file or directory path.
Definition in file pfile.h.
Checks whether a file exists or not.
file | File name to check. |
On Windows this call doesn't resolve symbolic links, while on UNIX systems does.
Removes a file from the disk.
file | File name to remove. | |
[out] | error | Error report object, NULL to ignore. |
This call doesn't resolve symbolic links and remove a symbolic link if the given path points to it.