Skip to content

Commit

Permalink
Add File.join to avoid double slashes
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Headley <hackartisan@users.noreply.github.com>
  • Loading branch information
leefaisonr and hackartisan committed Jul 21, 2023
1 parent 4d53c23 commit d1f41d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/copy_images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
source = ARGV[0]
destination = ARGV[1]
puts "Copying files from #{source} to #{destination}"
files = Dir["#{source}/**/*.tiff"]
files = Dir[File.join(source, '**/*.tiff')]
sync_dir = File.join(source, 'for_aws_sync')
Dir.mkdir(sync_dir)
files.each do |file_name|
Expand Down

0 comments on commit d1f41d5

Please sign in to comment.