Mercurial > hg > orthanc
diff Core/FileStorage/FileStorage.cpp @ 803:4689e400e0fa
directory to store the results of the unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 07 May 2014 09:29:11 +0200 |
parents | 2d0a347e8cfc |
children | a811bdf8b8eb |
line wrap: on
line diff
--- a/Core/FileStorage/FileStorage.cpp Tue May 06 17:09:32 2014 +0200 +++ b/Core/FileStorage/FileStorage.cpp Wed May 07 09:29:11 2014 +0200 @@ -78,25 +78,10 @@ FileStorage::FileStorage(std::string root) { - namespace fs = boost::filesystem; - //root_ = boost::filesystem::absolute(root).string(); root_ = root; - if (fs::exists(root)) - { - if (!fs::is_directory(root)) - { - throw OrthancException("The file storage root directory is a file"); - } - } - else - { - if (!fs::create_directories(root)) - { - throw OrthancException("Unable to create the file storage root directory"); - } - } + Toolbox::CreateDirectory(root); } std::string FileStorage::CreateFileWithoutCompression(const void* content, size_t size)