bool file_specification::make_relative(const std::string& root)
{
  if (relative()) return true;
  file_specification rootspec;
  rootspec.initialise_folder(root);
  return make_relative(rootspec);
}
Exemplo n.º 2
0
    bool operator()(const hdf5::node::Link &link) const
    {
      Path path;
      if(!is_resolvable(link))
        path = get_path(link);
      else
        path = get_path(*link);

      path = make_relative(base_path_,path);
      return match(path,path_);
    }
Exemplo n.º 3
0
fs::path compute(const fs::path & local, const fs::path & protocol, const fs::path & path)
{
    auto complete_path = local / (make_relative(protocol, path));
    return complete_path;
}