lib/vos/drivers/s3_vfs_storage.rb in vos-0.4.0 vs lib/vos/drivers/s3_vfs_storage.rb in vos-0.4.1
- old
+ new
@@ -28,15 +28,13 @@
attrs[:file] = true
attrs[:dir] = false
attrs[:size] = file.content_length
attrs[:updated_at] = file.last_modified
attrs
- # There's no dirs, always returning false
- # elsif dir_exists? path
- # attrs[:dir] = true
else
- return nil
+ # There's no dirs in S3, so we always return nil
+ nil
end
end
def set_attributes path, attrs
raise 'not supported'
@@ -77,10 +75,11 @@
#
# Dir
#
def create_dir path
- raise Error, ":create_dir not supported!"
+ # there's no concept of dir in s
+ # raise Error, ":create_dir not supported!"
end
def delete_dir path
path = normalize_path path
\ No newline at end of file