6 namespace edm::storage {
16 std::string newurl((proto ==
"web" ?
"http" : proto) +
":" + path);
17 const char *curlopts[] = {
"curl",
"-L",
"-f",
"-o", temp.c_str(),
"-q",
"-s",
"--url", newurl.c_str(),
nullptr};
24 using namespace edm::storage;
std::string tempDir(void) const
std::unique_ptr< Storage > open(const std::string &proto, const std::string &path, int mode, const AuxSettings &) const override
static std::unique_ptr< Storage > get(int localfd, const std::string &name, char **cmd, int mode)
static int local(const std::string &tmpdir, std::string &temp)
#define DEFINE_EDM_PLUGIN(factory, type, name)
static const StorageFactory * get(void)