111 void put(
const char *file,
const char *remoteName =
nullptr) {
PutFile(file, remoteName); }
112 void get(
const char *file,
const char *localName =
nullptr) {
GetFile(file, localName); }
118 void mv(
const char *file1,
const char *file2)
const {
RenameFile(file1, file2); }
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char mode
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=nullptr)
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.
void get(const char *file, const char *localName=nullptr)
Int_t Recv(Int_t &status, EMessageTypes &kind) const
Return status from rootd server and message kind.
void Print(Option_t *opt="") const override
Print some info about the FTP connection.
void mkdir(const char *dir) const
void Init(const char *url, Int_t parallel, Int_t wsize)
Set up the actual connection.
Long64_t GetFile(const char *file, const char *localName=nullptr)
Transfer file from remote host.
void SetRestartAt(Long64_t at)
void put(const char *file, const char *remoteName=nullptr)
void FreeDirectory(Bool_t print=kFALSE)
Free a remotely open directory via rootd.
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.
void ls(Option_t *cmd="") const override
The ls function lists the contents of a class on stdout.
Int_t ListDirectory(Option_t *cmd="") const
List remote directory.
void operator=(const TFTP &)=delete
void SetBlockSize(Int_t blockSize)
Make sure the block size is a power of two, with a minimum of 32768.
TFTP(const TFTP &)=delete
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 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
static Long64_t fgBytesWrite
Int_t GetBlockSize() const
Mother of all ROOT objects.