commit | f2c16e0ec844f73bce7ac331d6febe7a4800c642 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Wed Jan 23 18:08:04 2013 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Wed Jan 23 18:08:04 2013 -0800 |
tree | 46f6a3fc858dd94f8f90954ed74290d8fab41da4 | |
parent | 9247c520b5dad13dfb99269fd2f8ed305c1934d8 [diff] [blame] |
Dispatcher now have all desired functions. Hopefully, after testing and debugging everything going to work
diff --git a/src/object-manager.cc b/src/object-manager.cc index 848929e..c89fd55 100644 --- a/src/object-manager.cc +++ b/src/object-manager.cc
@@ -96,6 +96,11 @@ return false; } + if (!exists (file.parent_path ())) + { + create_directories (file.parent_path ()); + } + fs::ofstream off (file, std::ios::out | std::ios::binary); ObjectDb fileDb (m_folder, hashStr);