-
Notifications
You must be signed in to change notification settings - Fork 8
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
Problems using filewatch and relative local_path #30
Comments
Hello, thanks for reporting this bug! Unfortunately, the proposed workaround would break the |
@mazay I don't see why it would break the bucket_path. But it maybe could break the initial sync. I will investigate the problem a bit more. And FYI I don't propose my workaround as a fix. It is only a temporary solution for me to get it working. |
Hi @4ndr345, alter a closer look it turned out that relative |
Steps to reproduce:
config.yaml
config.yaml
set local_path to.\\S3
s3sync-service
test.txt
inS3
folder.Expected behavior:
The file
test.txt
will be synced with AWS S3Observed behavior:
The file
test.txt
is not synced with AWS S3Comments:
The problem is that
filepath.Rel
returns an error. The reason is the following. The file watcher returns an absolutefilePath
for exampleC:\\Users\\TestUser\\S3\\test.txt
. Computing the relative path fromC:\\Users\\TestUser\\S3\\test.txt
and.\\S3
results in an error. The current workaround is to always use an absolutelocal_path
in the configuration.If help is needed I can create an pull request with a possible fix.
OS: Windows 10 Pro
Go version: go1.14 windows/amd64
The text was updated successfully, but these errors were encountered: