2
Copyright (C) 2008- The University of Notre Dame
3
This software is distributed under the GNU General Public License.
4
See the file COPYING for details.
7
#ifndef CHIRP_RECURSIVE_H
8
#define CHIRP_RECURSIVE_H
10
#include "int_sizes.h"
12
/** @file chirp_recursive.h
13
A high level interface to put and get large directories trees to and from Chirp servers.
16
/** Recursively put a file or directory to a Chirp server.
17
Relies on @ref chirp_reli_putfile and similar calls
18
to handle a number of failure cases.
19
@param hostport The host and port of the Chirp server.
20
@param sourcepath The path to the local file or directory to send.
21
@param targetpath The name to give the file or directory on the server.
22
@param stoptime The absolute time at which to abort.
23
@return On success, returns the sum of file bytes transferred. On failure, returns less than zero and sets errno appropriately.
26
INT64_T chirp_recursive_put( const char *hostport, const char *sourcepath, const char *targetpath, time_t stoptime );
28
/** Recursively get a file or directory from a Chirp server.
29
Relies on @ref chirp_reli_getfile and similar calls
30
to handle a number of failure cases.
31
@param hostport The host and port of the Chirp server.
32
@param sourcepath The path to the remote file or directory to get.
33
@param targetpath The name to give the local file or directory.
34
@param stoptime The absolute time at which to abort.
35
@return On success, returns the sum of file bytes transferred. On failure, returns less than zero and sets errno appropriately.
38
INT64_T chirp_recursive_get( const char *hostport, const char *sourcepath, const char *targetpath, time_t stoptime );