diff --git a/Directory.Build.props b/Directory.Build.props
index 1b1af3f..b2e0a14 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -14,8 +14,8 @@
MIT
README.md
Managed Code - Storage
- 2.1.5
- 2.1.5
+ 2.1.6
+ 2.1.6
true
diff --git a/ManagedCode.Storage.FileSystem/FileSystemStorage.cs b/ManagedCode.Storage.FileSystem/FileSystemStorage.cs
index 95add1c..e5ef1ff 100644
--- a/ManagedCode.Storage.FileSystem/FileSystemStorage.cs
+++ b/ManagedCode.Storage.FileSystem/FileSystemStorage.cs
@@ -114,7 +114,9 @@ private string GetPathFromOptions(BaseOptions options)
{
filePath = Path.Combine(StorageClient, options.FileName);
}
-
+
+ EnsureDirectoryExist(Path.GetDirectoryName(filePath));
+
return filePath;
}