Function silc_sftp_fs_memory_add_file
SYNOPSIS
SilcBool silc_sftp_fs_memory_add_file(SilcSFTPFilesystem fs, void *dir,
SilcSFTPFSMemoryPerm perm,
const char *filename,
const char *realpath);
DESCRIPTION
Adds a new file to the directory indicated by the `dir'. If the `dir'
is NULL the file is added to the root directory. The `filename' is the
filename in the directory. The `realpath' is the real filepath in the
physical filesystem. The real path must include the schema to
indicate where the file is actually located. The only supported
schema currently is "file://". It is used to actually access the fil
from the memory filesystem. The `perm' will indicate the permissions
for the file and they work in POSIX style. Returns TRUE if the file
was added to the directory.
|