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.



161
162
163
164
165
166
# File 'lib/s3fsr.rb', line 161

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

Instance Method Details

#bucketObject



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

def bucket
  @parent.bucket
end

#nameObject



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

def name
  @name
end