51 extern const std::string
VERSION;
55 #define ENVPFX "Davix." 59 using namespace Davix;
73 SetTitle(
"WebDAV system administration");
83 SetTitle(
"WebDAV system administration");
106 DavixError *davixErr =
NULL;
107 if (((dir =
d_ptr->
davixPosix->readdir(static_cast<DAVIX_DIR *>(dirp), &davixErr)) ==
NULL)
108 && (davixErr !=
NULL)) {
109 Error(
"DavixReaddir",
"failed to readdir the directory: %s (%d)",
110 davixErr->getErrMsg().c_str(), davixErr->getStatus());
111 DavixError::clearError(&davixErr);
113 return (dir) ? (dir->d_name) :
NULL;
120 DavixError *davixErr =
NULL;
123 Error(
"DavixOpendir",
"failed to opendir the directory: %s (%d)",
124 davixErr->getErrMsg().c_str(), davixErr->getStatus());
125 DavixError::clearError(&davixErr);
148 buf.
fMode = st.st_mode;
150 buf.
fUid = st.st_uid;
151 buf.
fGid = st.st_gid;
152 buf.
fSize = st.st_size;
172 DavixError *davixErr =
NULL;
179 Error(
"DavixLocate",
"failed to Locate file: %s (%d)",
180 davixErr->getErrMsg().c_str(), davixErr->getStatus());
181 DavixError::clearError(&davixErr);
184 if (vecRep.size() > 0) {
185 endurl = vecRep[0].uri.getString().c_str();
190 Info(
"DavixLocate",
"Davix Locate %s to %s", path, endurl.Data());
199 DavixError *davixErr =
NULL;
202 Error(
"DavixMkdir",
"failed to create the directory: %s (%d)",
203 davixErr->getErrMsg().c_str(), davixErr->getStatus());
204 DavixError::clearError(&davixErr);
213 DavixError *davixErr =
NULL;
216 Error(
"DavixUnlink",
"failed to unlink the file: %s (%d)",
217 davixErr->getErrMsg().c_str(), davixErr->getStatus());
218 DavixError::clearError(&davixErr);
virtual Int_t MakeDirectory(const char *dir)
Make a directory.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Davix::RequestParams * davixParam
virtual int Unlink(const char *path)
Unlink, i.e. remove, a file.
const char * s3_seckey_opt
virtual Int_t Locate(const char *path, TString &endurl)
const char * s3_acckey_opt
Davix::DavPosix * davixPosix
const std::string VERSION
Int_t DavixStat(const char *url, struct stat *st)
const char * ca_check_opt
virtual Bool_t IsPathLocal(const char *path)
Returns TRUE if the url in 'path' points to the local file system.
const std::string gUserAgent
virtual void * OpenDirectory(const char *dir)
Open a directory. Returns 0 if directory does not exist.
void removeDird(void *fd)
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TDavixFileInternal * d_ptr
virtual void FreeDirectory(void *dirp)
Free a directory.
const char * grid_mode_opt
typedef void((*Func_t)())
virtual Bool_t ConsistentWith(const char *path, void *dirptr)
Check consistency of this helper with the one required by 'path' or 'dirptr'.
virtual const char * GetDirEntry(void *dirp)
Get a directory entry. Returns 0 if no more entries.
Abstract base class defining a generic interface to the underlying Operating System.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual Int_t GetPathInfo(const char *path, FileStat_t &buf)
Get info about a file.
Davix::Context * davixContext