s3cp 1.1.33 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/lib/s3cp/s3cp.rb +3 -1
- data/lib/s3cp/version.rb +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/s3cp/s3cp.rb
CHANGED
@@ -572,7 +572,9 @@ def copy(from, to, options)
|
|
572
572
|
FileUtils.mkdir_p dir unless File.exist? dir
|
573
573
|
dest
|
574
574
|
else
|
575
|
-
File.
|
575
|
+
dest = File.expand_path(to)
|
576
|
+
File.join(dest, File.basename(key_from)) if File.directory?(dest)
|
577
|
+
dest
|
576
578
|
end
|
577
579
|
if !options[:overwrite] && File.exist?(dest)
|
578
580
|
$stderr.puts "Skipping #{dest} - already exists."
|
data/lib/s3cp/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3cp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 87
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 34
|
10
|
+
version: 1.1.34
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Boisvert
|