From 41dc3c12770d19956db6cbb1e4a0f389bfc637b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Wed, 25 Aug 2010 17:53:53 +0200
Subject: Create all parent directories for avatar cache if necessary.


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;
-- 
cgit v0.10.2-6-g49f6