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

Unable to copy a single file from Google Drive #1772

Closed
dbareiro opened this issue Oct 25, 2017 · 6 comments
Closed

Unable to copy a single file from Google Drive #1772

dbareiro opened this issue Oct 25, 2017 · 6 comments

Comments

@dbareiro
Copy link

Hi, Nick!

I am using rclone (rclone-v1.38-linux-amd64.zip) on Debian Jessie but I am not able to copy a single file:

$ ./rclone ls remote:Educ.ar
     4629 IDC-EQUIPAMIENTO.xlsx
$ ./rclone copy remote:Educ.ar/IDC-EQUIPAMIENTO.xlsx .
2017/10/25 13:53:58 ERROR : : error reading source directory: directory not found
2017/10/25 13:53:58 ERROR : Attempt 1/3 failed with 1 errors
2017/10/25 13:53:58 ERROR : : error reading source directory: directory not found
2017/10/25 13:53:58 ERROR : Attempt 2/3 failed with 1 errors
2017/10/25 13:53:58 ERROR : : error reading source directory: directory not found
2017/10/25 13:53:58 ERROR : Attempt 3/3 failed with 1 errors

Maybe I'm missing something?

Thanks in advance.

Kind regards,
Daniel

@naeloob
Copy link

naeloob commented Oct 25, 2017

Try : ./rclone copy remote:Educ.ar . --include IDC-EQUIPAMIENTO.xlsx

@dbareiro
Copy link
Author

dbareiro commented Oct 26, 2017

Hi, naeloob.

Thank you very much. That worked. Is it always necessary to use --include to copy a single file?

Also the directory not found error seemed a bit ambiguous because the source directory exists. That's why I was not sure what the problem was.

Kind regards,
Daniel

@naeloob
Copy link

naeloob commented Oct 26, 2017

Rclone is a tool to copy/sync complete folders, so if you want just a file you have to filter for it.

Remote:Path
You cannot put a filename on the path part. If you want to filter to copy just something from that path you must filter with filter parameters : include, exclude, filters...

Rclone was looking for the Educ.ar/IDC-EQUIPAMIENTO.xlsx directory... and cannot find it.

@dbareiro
Copy link
Author

Hi again, naeloob.

Remote:Path
You cannot put a filename on the path part. If you want to filter to
copy just something from that path you must filter with filter
parameters: include, exclude, filters...

Rclone was looking for the Educ.ar/IDC-EQUIPAMIENTO.xlsx directory...
and cannot find it.

Thanks for your reply and the clarification.

Maybe my mistake was thinking the path could contain a filename at the end. When I read the documentation I saw some about that; for example when using the copyto parameter [1]. In fact, I had also tried using the copyto parameter but it did not work either.

Kind regards,
Daniel

[1] https://rclone.org/commands/rclone_copyto/

@ncw ncw added this to the Known Problem milestone Dec 12, 2017
@ncw
Copy link
Member

ncw commented Dec 12, 2017

Sorry for not responding sooner.

Yes you should be able to copy single files as you have written.

However because this file is a google doc and not an actual file, it isn't working.

This is a bug which needs fixing!

However the workaround suggested by @naeloob using --include will work find for google docs and google files.

@dbareiro
Copy link
Author

Hi, Nick!

Thank you for confirming that it is a bug. In the meantime I will use the workaround mentioned by @naeloob.

Kind regards,
Daniel

B4dM4n added a commit to B4dM4n/rclone that referenced this issue Jan 26, 2018
Allow using Drive Documents as FS root by doing a direcoty list during NewFS.

Fixes rclone#1772
B4dM4n added a commit to B4dM4n/rclone that referenced this issue Jan 26, 2018
Allow using Drive Documents as FS root by doing a direcoty list during NewFS.

Fixes rclone#1772
@ncw ncw closed this as completed in #2016 Jan 26, 2018
ncw pushed a commit that referenced this issue Jan 26, 2018
Allow using Drive Documents as FS root by doing a direcoty list during NewFS.

Fixes #1772
@B4dM4n B4dM4n modified the milestones: Known Problem, v1.40 Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants