Class: SFakeDir

Inherits:
SBaseDir show all
Defined in:
lib/s3fsr.rb

Overview

for s3sync/s3organizer fake directories

Instance Method Summary collapse

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) ⇒ SFakeDir

Returns a new instance of SFakeDir.



165
166
167
168
169
170
# File 'lib/s3fsr.rb', line 165

def initialize(parent, key)
  @parent = parent
  @key = key
  @data = nil
  @name = strip_dir_suffix(last_part(@key))
end

Instance Method Details

#bucketObject



174
175
176
# File 'lib/s3fsr.rb', line 174

def bucket
  @parent.bucket
end

#nameObject



171
172
173
# File 'lib/s3fsr.rb', line 171

def name
  @name
end