Skip to content

Unable to copy a single file from Google Drive #1772

Closed

Description

@dbareiro

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

  1. naeloob commented on Oct 25, 2017

    @naeloob

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

  2. dbareiro commented on Oct 26, 2017

    @dbareiro
    Author

    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

  3. naeloob commented on Oct 26, 2017

    @naeloob

    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.

  4. dbareiro commented on Oct 29, 2017

    @dbareiro
    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/

  5. added this to the Known Problem milestone on Dec 12, 2017
  6. ncw commented on Dec 12, 2017

    @ncw
    Member

    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.

  7. dbareiro commented on Dec 12, 2017

    @dbareiro
    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

  8. added a commit that references this issue on Jan 26, 2018
    29286cc
  9. modified the milestones: Known Problem, v1.40 on Feb 27, 2018
  10. added a commit that references this issue on Jul 20, 2026
    cc7810b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions