diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-25 15:53:53 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-25 15:53:53 (GMT) |
commit | 41dc3c12770d19956db6cbb1e4a0f389bfc637b0 (patch) | |
tree | 2ced012c5f5bcf385d19b5d3db1db063c4b29bd8 /Swiften/Avatars | |
parent | 2ec3dbaf8d73baae8827863c5ff1f0b6f9c726c8 (diff) | |
download | swift-contrib-41dc3c12770d19956db6cbb1e4a0f389bfc637b0.zip swift-contrib-41dc3c12770d19956db6cbb1e4a0f389bfc637b0.tar.bz2 |
Create all parent directories for avatar cache if necessary.
Diffstat (limited to 'Swiften/Avatars')
-rw-r--r-- | Swiften/Avatars/AvatarFileStorage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Avatars/AvatarFileStorage.cpp b/Swiften/Avatars/AvatarFileStorage.cpp index 57bb1be..b6630e9 100644 --- a/Swiften/Avatars/AvatarFileStorage.cpp +++ b/Swiften/Avatars/AvatarFileStorage.cpp @@ -13,7 +13,7 @@ namespace Swift { AvatarFileStorage::AvatarFileStorage(const boost::filesystem::path& path) : path_(path) { try { - boost::filesystem::create_directory(path_); + boost::filesystem::create_directories(path_); } catch (const boost::filesystem::filesystem_error& e) { std::cerr << "ERROR: " << e.what() << std::endl; |