Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Made is_empty? work if another folder starts with the same name as th…
Browse files Browse the repository at this point in the history
…is one (#5)
  • Loading branch information
alexanderdean committed May 12, 2014
1 parent a124970 commit 7e790e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Broke up s3.rb into separate files (#21)
Updated alter_filename_lambda to accept original filepath as 2nd arg (#19) - TODO
Overrode equality operator for S3::Location to support tests (#10)
Fixed break bugs in core Sluice process flow (#6)
Made is_empty? work if another folder starts with the same name as this one (#5) - TODO
Made is_empty? work if another folder starts with the same name as this one (#5)

Version 0.1.5 (2013-10-13)
--------------------------
Expand Down
2 changes: 1 addition & 1 deletion lib/sluice/storage/s3/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def new_fog_s3_from(region, access_key_id, secret_access_key)
# Returns array of Fog::Storage::AWS::File's
Contract FogStorage, Location => ArrayOf[FogFile]
def list_files(s3, location)
files_and_dirs = s3.directories.get(location.bucket, prefix: location.dir).files
files_and_dirs = s3.directories.get(location.bucket, prefix: location.dir_as_path).files

files = [] # Can't use a .select because of Ruby deep copy issues (array of non-POROs)
files_and_dirs.each { |f|
Expand Down

0 comments on commit 7e790e5

Please sign in to comment.