We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae2af0 commit 9fc461fCopy full SHA for 9fc461f
lib/fog/local/models/storage/directory.rb
@@ -40,7 +40,7 @@ def public_url
40
def save
41
requires :key
42
43
- Dir.mkdir(path)
+ FileUtils.mkpath(path)
44
true
45
end
46
tests/local/models/directory_tests.rb
@@ -0,0 +1,16 @@
1
+Shindo.tests('Storage[:local] | directory', ["local"]) do
2
+
3
+ pending if Fog.mocking?
4
5
+ before do
6
+ @options = { :local_root => '~/.fog' }
7
+ end
8
9
+ tests('save') do
10
+ returns(true) do
11
+ connection = Fog::Storage::Local.new(@options)
12
+ connection.directories.create(:key => 'directory')
13
14
15
16
+end
0 commit comments