118 void mv(
const char *file1,
const char *file2)
const {
RenameFile(file1, file2); }
#define ClassDef(name, id)
Int_t MakeDirectory(const char *dir, Bool_t print=kFALSE) const
Make a remote directory.
Int_t DeleteDirectory(const char *dir) const
Delete a remote directory.
Long64_t PutFile(const char *file, const char *remoteName=0)
Transfer file to remote host.
Int_t DeleteFile(const char *file) const
Delete a remote file.
void PrintError(const char *where, Int_t err) const
Print error string depending on error code.
Int_t Recv(Int_t &status, EMessageTypes &kind) const
Return status from rootd server and message kind.
void mkdir(const char *dir) const
void Init(const char *url, Int_t parallel, Int_t wsize)
Set up the actual connection.
void SetRestartAt(Long64_t at)
void FreeDirectory(Bool_t print=kFALSE)
Free a remotely open directory via rootd.
void operator=(const TFTP &)
Int_t GetPathInfo(const char *path, FileStat_t &buf, Bool_t print=kFALSE)
Get info about a file.
Int_t RenameFile(const char *file1, const char *file2) const
Rename a remote file.
void chmod(const char *file, Int_t mode) const
static Long64_t fgBytesRead
void mv(const char *file1, const char *file2) const
Bool_t OpenDirectory(const char *name, Bool_t print=kFALSE)
Open a directory via rootd.
Int_t PrintDirectory() const
Print path of remote working directory.
Int_t ListDirectory(Option_t *cmd="") const
List remote directory.
Long64_t GetFile(const char *file, const char *localName=0)
Transfer file from remote host.
void get(const char *file, const char *localName=0)
void SetBlockSize(Int_t blockSize)
Make sure the block size is a power of two, with a minimum of 32768.
void rm(const char *file) const
TSocket * GetSocket() const
Int_t ChangePermission(const char *file, Int_t mode) const
Change permissions of a remote file.
const char * GetDirEntry(Bool_t print=kFALSE)
Get directory entry via rootd.
Int_t Close()
Close ftp connection.
void Print(Option_t *opt="") const
Print some info about the FTP connection.
void rmdir(const char *dir) const
Long64_t GetRestartAt() const
Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists, Bool_t print=kFALSE)
Returns kFALSE if one can access a file using the specified access mode.
void cd(const char *dir) const
Int_t ChangeDirectory(const char *dir) const
Change the remote directory.
virtual ~TFTP()
TFTP dtor. Send close message and close socket.
Long64_t fBytesWrite
connection to rootd
void put(const char *file, const char *remoteName=0)
void ls(Option_t *cmd="") const
The ls function lists the contents of a class on stdout.
static Long64_t fgBytesWrite
Int_t GetBlockSize() const
Mother of all ROOT objects.