48extern const std::string
VERSION;
52#define ENVPFX "Davix."
70 SetTitle(
"WebDAV system administration");
80 SetTitle(
"WebDAV system administration");
103 DavixError *davixErr = NULL;
104 if (((dir =
d_ptr->
davixPosix->readdir(
static_cast<DAVIX_DIR *
>(dirp), &davixErr)) == NULL)
105 && (davixErr != NULL)) {
106 Error(
"DavixReaddir",
"failed to readdir the directory: %s (%d)",
107 davixErr->getErrMsg().c_str(), davixErr->getStatus());
108 DavixError::clearError(&davixErr);
110 return (dir) ? (dir->d_name) : NULL;
117 DavixError *davixErr = NULL;
120 Error(
"DavixOpendir",
"failed to opendir the directory: %s (%d)",
121 davixErr->getErrMsg().c_str(), davixErr->getStatus());
122 DavixError::clearError(&davixErr);
145 buf.
fMode = st.st_mode;
147 buf.
fUid = st.st_uid;
148 buf.
fGid = st.st_gid;
149 buf.
fSize = st.st_size;
169 DavixError *davixErr = NULL;
176 Error(
"DavixLocate",
"failed to Locate file: %s (%d)",
177 davixErr->getErrMsg().c_str(), davixErr->getStatus());
178 DavixError::clearError(&davixErr);
181 if (vecRep.size() > 0) {
182 endurl = vecRep[0].uri.getString().c_str();
187 Info(
"DavixLocate",
"Davix Locate %s to %s", path, endurl.
Data());
196 DavixError *davixErr = NULL;
199 Error(
"DavixMkdir",
"failed to create the directory: %s (%d)",
200 davixErr->getErrMsg().c_str(), davixErr->getStatus());
201 DavixError::clearError(&davixErr);
210 DavixError *davixErr = NULL;
213 Error(
"DavixUnlink",
"failed to unlink the file: %s (%d)",
214 davixErr->getErrMsg().c_str(), davixErr->getStatus());
215 DavixError::clearError(&davixErr);
const char * s3_seckey_opt
const std::string VERSION
const char * ca_check_opt
const char * s3_acckey_opt
const char * grid_mode_opt
const std::string gUserAgent
typedef void((*Func_t)())
Davix::RequestParams * davixParam
Davix::DavPosix * davixPosix
Int_t DavixStat(const char *url, struct stat *st)
Davix::Context * davixContext
void removeDird(void *fd)
virtual Int_t MakeDirectory(const char *dir)
Make a directory.
virtual void * OpenDirectory(const char *dir)
Open a directory. Returns 0 if directory does not exist.
virtual Int_t GetPathInfo(const char *path, FileStat_t &buf)
Get info about a file.
virtual void FreeDirectory(void *dirp)
Free a directory.
virtual const char * GetDirEntry(void *dirp)
Get a directory entry. Returns 0 if no more entries.
virtual Int_t Locate(const char *path, TString &endurl)
virtual Bool_t IsPathLocal(const char *path)
Returns TRUE if the url in 'path' points to the local file system.
virtual Bool_t ConsistentWith(const char *path, void *dirptr)
Check consistency of this helper with the one required by 'path' or 'dirptr'.
TDavixFileInternal * d_ptr
virtual int Unlink(const char *path)
Unlink, i.e.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
const char * Data() const
Abstract base class defining a generic interface to the underlying Operating System.