Class: Fog::Storage::Local::Directory
- Inherits:
-
Model
- Object
- Model
- Fog::Storage::Local::Directory
- Defined in:
- lib/fog/local/models/storage/directory.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/local/models/storage/directory.rb', line 10 def destroy requires :key if ::File.directory?(path) Dir.rmdir(path) true else false end end |
#files ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/fog/local/models/storage/directory.rb', line 21 def files @files ||= begin Fog::Storage::Local::Files.new( :directory => self, :service => service ) end end |
#public=(new_public) ⇒ Object
30 31 32 |
# File 'lib/fog/local/models/storage/directory.rb', line 30 def public=(new_public) new_public end |
#public_url ⇒ Object
34 35 36 |
# File 'lib/fog/local/models/storage/directory.rb', line 34 def public_url nil end |
#save ⇒ Object
38 39 40 41 42 43 |
# File 'lib/fog/local/models/storage/directory.rb', line 38 def save requires :key FileUtils.mkpath(path) true end |