-
Notifications
You must be signed in to change notification settings - Fork 1
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
Recursively put files sometimes #10
Conversation
FYI, as discussed, this could use testing. |
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.
testing
* Run localstack * Add s3cmd config file * Test enum * Install s3cmd * Add test * Install s3cmd with pip * Change s3cmd client location * Wait for localstack to start
672dc25
to
266a37d
Compare
32b9771
to
f1e5722
Compare
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.
with comment
.travis.yml
Outdated
jdk: | ||
- oraclejdk8 | ||
script: | ||
- mvn clean install | ||
before_install: | ||
- pip install --upgrade pip | ||
- pip install --user s3cmd |
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.
lets get versions on these so they do not break unexpectedly
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.
minor question
private void setConfiguration() throws Exception { | ||
HashMap hm = new HashMap(); | ||
hm.put("client", "/home/travis/.local/bin/s3cmd"); | ||
// hm.put("client", "/usr/local/bin/s3cmd"); |
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.
Does this have to be manually uncommented to run locally?
If yes, just use https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#exists(java.nio.file.Path,%20java.nio.file.LinkOption...)
If no (i.e. this is superfluous, just delete it)
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.
It depends on where s3cmd is installed. I happen to have mine installed in /usr/local/bin/s3cmd
. Travis by default installs it in /home/travis/.local/bin/s3cmd
instead. If the local user doesn't even have s3cmd installed, the tests would fail also.
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.
Yeah, I would just check the two locations using Files.exists and fail otherwise indicating just that
Allows uploading directories for issue #9
Only allowed if the destination ends with a slash. S3cmd would complain about uploading otherwise.