New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix non-directory source path handling #71
Conversation
Codecov Report
@@ Coverage Diff @@
## master #71 +/- ##
==========================================
+ Coverage 76.25% 79.47% +3.22%
==========================================
Files 4 4
Lines 240 268 +28
==========================================
+ Hits 183 213 +30
+ Misses 32 31 -1
+ Partials 25 24 -1
Continue to review full report at Codecov.
|
8a865a9
to
441bd43
Compare
@kt3k @kamatama41 please take a look |
if name == "." { | ||
// Single file was specified | ||
c <- &fileInfo{ | ||
name: filepath.Base(*object.Key), | ||
path: filepath.Dir(*object.Key), | ||
size: *object.Size, | ||
lastModified: *object.LastModified, | ||
singleFile: true, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
s3sync_test.go
Outdated
if err := New(getSession()).Sync("s3://example-bucket/README.md", filepath.Join(temp, "foo")+"/"); err != nil { | ||
t.Fatal("Sync should be successful", err) | ||
} | ||
// Download to ./foo/README.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should be Download to ./test.md
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
Fix #69