summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-25 15:53:53 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-25 15:53:53 (GMT)
commit41dc3c12770d19956db6cbb1e4a0f389bfc637b0 (patch)
tree2ced012c5f5bcf385d19b5d3db1db063c4b29bd8 /Swiften
parent2ec3dbaf8d73baae8827863c5ff1f0b6f9c726c8 (diff)
downloadswift-41dc3c12770d19956db6cbb1e4a0f389bfc637b0.zip
swift-41dc3c12770d19956db6cbb1e4a0f389bfc637b0.tar.bz2
Create all parent directories for avatar cache if necessary.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Avatars/AvatarFileStorage.cpp2
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;