Class: SPrefixDir
Overview
for either non-existent or aws console-created fake directories that end with /
Instance Method Summary collapse
- #bucket ⇒ Object
-
#initialize(parent, key) ⇒ SPrefixDir
constructor
A new instance of SPrefixDir.
- #name ⇒ Object
Methods inherited from SBaseDir
#can_write_files?, #content_deleted, #contents, #create_dir, #create_file, #delete, #get, #is_directory?, #is_file?, #size, #touch
Constructor Details
#initialize(parent, key) ⇒ SPrefixDir
Returns a new instance of SPrefixDir.
145 146 147 148 149 150 |
# File 'lib/s3fsr.rb', line 145 def initialize(parent, key) @parent = parent @key = key @data = nil @name = last_part(@key) end |
Instance Method Details
#bucket ⇒ Object
154 155 156 |
# File 'lib/s3fsr.rb', line 154 def bucket @parent.bucket end |
#name ⇒ Object
151 152 153 |
# File 'lib/s3fsr.rb', line 151 def name @name end |