Name
afc_fileops_link -- Create a symbolic link to a file/dir
Synopsis
int afc_fileops_link
( FileOperations * fo, char * source, char * dest );
Description
This function creates a symbolic link to a file or dir.
It corresponds to the shell command /ln -s/.
Inputs
- fo
Pointer to a valid FileOperations class.
- source
Source file/dir name (with full path) to link
- dest
Destination file/dir name (with full path) where to link source.
Result
AFC_ERR_NO_ERROR: no error occurred
if copy fails for some reason, you'll get an AFC_FILEOPS_ERR_LINK error.