From e787bccdeb300d218476a42d191bdf40445ab0a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Thu, 17 Oct 2013 19:48:00 +0200 Subject: [PATCH] Polishing comments (getParentPath()). --- src/VfsNs.cpp | 6 ++++++ src/VfsNs.h | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/VfsNs.cpp b/src/VfsNs.cpp index c7c6b92..da201f6 100644 --- a/src/VfsNs.cpp +++ b/src/VfsNs.cpp @@ -803,6 +803,12 @@ void VfsCatalog::updateReplica(const Replica& replica) throw (DmException) +/// 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) diff --git a/src/VfsNs.h b/src/VfsNs.h index 20c2477..462bbc3 100644 --- a/src/VfsNs.h +++ b/src/VfsNs.h @@ -95,11 +95,6 @@ namespace dmlite { 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. -- 1.8.2.3