From 138d57143afc19df2e12ca72f61d3a0d25dcf3b1 Mon Sep 17 00:00:00 2001
From: hagen <hagen@mail.i2p>
Date: Thu, 18 Feb 2016 00:00:00 +0000
Subject: [PATCH] * FS.cpp : add const to accessors

---
 FS.cpp | 2 +-
 FS.h   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/FS.cpp b/FS.cpp
index c77cbe6d..f6125954 100644
--- a/FS.cpp
+++ b/FS.cpp
@@ -124,7 +124,7 @@ namespace fs {
     return true;
   }
 
-  std::string HashedStorage::Path(const std::string & ident) {
+  std::string HashedStorage::Path(const std::string & ident) const {
     std::string safe_ident = ident;
     std::replace(safe_ident.begin(), safe_ident.end(), '/',  '-');
     std::replace(safe_ident.begin(), safe_ident.end(), '\\', '-');
diff --git a/FS.h b/FS.h
index 64b50940..0c4e246a 100644
--- a/FS.h
+++ b/FS.h
@@ -45,12 +45,12 @@ namespace fs {
 
       /** create subdirs in storage */
       bool Init(const char* chars, size_t cnt);
-      const std::string & GetRoot() { return this->root; }
-      const std::string & GetName() { return this->name; }
+      const std::string & GetRoot() const { return this->root; }
+      const std::string & GetName() const { return this->name; }
       /** set directory where to place storage directory */
       void SetPlace(const std::string & path);
       /** path to file with given ident */
-      std::string Path(const std::string & ident);
+      std::string Path(const std::string & ident) const;
       /** remove file by ident */
       void Remove(const std::string & ident);
       /** find all files in storage and store list in provided vector */