Mercurial > hg > orthanc
diff Core/FileStorage/FilesystemStorage.cpp @ 1397:704de8c30ff5
modularization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 01 Jun 2015 11:50:58 +0200 |
parents | 6e7e5ed91c2d |
children | f967bdf8534e |
line wrap: on
line diff
--- a/Core/FileStorage/FilesystemStorage.cpp Mon Jun 01 11:15:55 2015 +0200 +++ b/Core/FileStorage/FilesystemStorage.cpp Mon Jun 01 11:50:58 2015 +0200 @@ -41,7 +41,10 @@ #include "../Uuid.h" #include <boost/filesystem/fstream.hpp> + +#if HAVE_GOOGLE_LOG == 1 #include <glog/logging.h> +#endif static std::string ToString(const boost::filesystem::path& p) { @@ -82,7 +85,7 @@ //root_ = boost::filesystem::absolute(root).string(); root_ = root; - Toolbox::CreateDirectory(root); + Toolbox::MakeDirectory(root); } void FilesystemStorage::Create(const std::string& uuid, @@ -212,7 +215,10 @@ void FilesystemStorage::Remove(const std::string& uuid, FileContentType /*type*/) { +#if HAVE_GOOGLE_LOG == 1 LOG(INFO) << "Deleting file " << uuid; +#endif + namespace fs = boost::filesystem; fs::path p = GetPath(uuid);