+/// Get the parent of a directory.
+///
+/// @param path The namespace path to split.
+/// @param parentPath Result parent path.
+/// @param name Result file name (with the last / stripped).
+/// @return The parent metadata.
ExtendedStat VfsCatalog::getParent(const std::string& path,
std::string* parentPath,
std::string* name) throw (DmException)
void updateReplica(const Replica& replica) throw (DmException);
protected:
- /// Get the parent of a directory.
- /// @param path The path to split.
- /// @param parentPath Where to put the parent path.
- /// @param name Where to put the file name (stripping last /).
- /// @return The parent metadata.
ExtendedStat getParent(const std::string& path, std::string* parentPath,
std::string* name) throw (DmException);
/// Get path on the local disk according to "public" path.