Class: SPrefixDir

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

Overview

for either non-existent or aws console-created fake directories that end with /

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

Returns a new instance of SPrefixDir.



141
142
143
144
145
146
# File 'lib/s3fsr.rb', line 141

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

Instance Method Details

#bucketObject



150
151
152
# File 'lib/s3fsr.rb', line 150

def bucket
  @parent.bucket
end

#nameObject



147
148
149
# File 'lib/s3fsr.rb', line 147

def name
  @name
end