Closed
Labels
Milestone
Description
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
Activity
naeloob commentedon Oct 25, 2017
Try : ./rclone copy remote:Educ.ar . --include IDC-EQUIPAMIENTO.xlsx
dbareiro commentedon Oct 26, 2017
Hi, naeloob.
Thank you very much. That worked. Is it always necessary to use
--includeto copy a single file?Also the
directory not founderror seemed a bit ambiguous because the source directory exists. That's why I was not sure what the problem was.Kind regards,
Daniel
naeloob commentedon 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 commentedon Oct 29, 2017
Hi again, naeloob.
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
copytoparameter [1]. In fact, I had also tried using thecopytoparameter but it did not work either.Kind regards,
Daniel
[1] https://rclone.org/commands/rclone_copyto/
ncw commentedon 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
--includewill work find for google docs and google files.dbareiro commentedon Dec 12, 2017
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
drive: fix single Drive Document as FS root
drive: fix single Drive Document as FS root