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.



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

#bucketObject



154
155
156
# File 'lib/s3fsr.rb', line 154

def bucket
  @parent.bucket
end

#nameObject



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

def name
  @name
end