Skip to content
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

File copy doesn't work with local files #152

Open
massijay opened this issue Dec 7, 2022 · 0 comments
Open

File copy doesn't work with local files #152

massijay opened this issue Dec 7, 2022 · 0 comments

Comments

@massijay
Copy link

massijay commented Dec 7, 2022

I can't copy a file using web gui if the source or destination is a local path (this does not affect directory copy).
I see that the problem is using the rclone API copyfile, with local paths dstFs or srcFs parameter (for downloading or uploading respectively) is an empty string but it should be "/".
Example:
Current behavior:

{
    "_async": true,
    "srcFs": "gdrive:",
    "srcRemote": "folder/file.txt",
    "dstFs": "",
    "dstRemote": "/home/test/file.txt"
}

Correct behavior should be:

{
    "_async": true,
    "srcFs": "gdrive:",
    "srcRemote": "folder/file.txt",
    "dstFs": "/",
    "dstRemote": "/home/test/file.txt"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant