From 0a8a373f8e995553a8e3663e9b576407eaaaacb9 Mon Sep 17 00:00:00 2001 From: leefaisonr Date: Fri, 21 Jul 2023 09:46:47 -0400 Subject: [PATCH] Add File.join to avoid double slashes Co-authored-by: Anna Headley --- data/copy_images.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/copy_images.rb b/data/copy_images.rb index 27800ab7..c2c31dbe 100755 --- a/data/copy_images.rb +++ b/data/copy_images.rb @@ -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|