libp7/doc/p7_copy.3.txt

43 lines
738 B
Plaintext

P7_COPY(3)
==========
Thomas "Cakeisalie5" Touhey
:Email: thomas@touhey.fr
:man source: libp7
:man manual: libp7 manual
NAME
----
p7_copy - copy file on distant device
SYNOPSIS
--------
[source,c]
----
#include <libp7.h>
int p7_copy(p7_handle_t *handle,
char *dirname, char *filename,
char *newdir, char *newname, char *devname);
p7_copy(handle, "hidden", "file.txt", NULL, "VISIBLE.txt", "fls0");
----
DESCRIPTION
-----------
This function copies a file to another on a distant device. A NULL directory
name is interpreted as root directory.
RETURN VALUE
------------
This function returns zero if everything went well, and the error code
otherwise.
ERRORS
------
See *p7_error*(3).
SEE ALSO
--------
*libp7*(3),
*p7_error*(3)