17 std::string newurl((proto ==
"web" ?
"http" : proto) +
":" + path);
18 auto file = std::make_unique<DavixFile>(newurl,
mode);
24 std::string newurl((proto ==
"web" ?
"http" : proto) +
":" + path);
25 Davix::DavixError *err =
nullptr;
27 Davix::DavPosix davixPosix(&c);
29 davixPosix.stat64(
NULL, newurl, &info, &err);
31 std::unique_ptr<Davix::DavixError> davixErrManaged(err);
33 ex <<
"Check failed with error " << err->getErrMsg().c_str() <<
" and error code"
std::unique_ptr< Storage > wrapNonLocalFile(std::unique_ptr< Storage > s, const std::string &proto, const std::string &path, int mode) const
static const StorageFactory * get(void)
virtual std::unique_ptr< Storage > open(const std::string &proto, const std::string &path, int mode, AuxSettings const &aux) const override
void addContext(std::string const &context)
#define DEFINE_EDM_PLUGIN(factory, type, name)
virtual bool check(const std::string &proto, const std::string &path, const AuxSettings &aux, IOOffset *size=0) const override