Skip to content

[Feature Request] Download the contents of a share into a directory ignoring the share's root folder #8

Closed

Description

@remailednet

For example:
If https://drive.google.com/drive/folders/123123123 is 'Folder_1' with the contents of 'SubFolder_1', 'file_1', 'file_2'

goodls -u https://drive.google.com/drive/folders/123123123 -d /localfolder/here/

I would like the end result to be:

/localfolder/here/SubFolder_1
/localfolder/here/SubFolder_1/file_1
/localfolder/here/SubFolder_1/file_2

and not:

/localfolder/here/Folder_1/SubFolder_1
/localfolder/here/Folder_1/SubFolder_1/file_1
/localfolder/here/Folder_1/SubFolder_1/file_2

Possible to add a switch to ignore the root folder of the share?
Or possibly if -d contains a trailing slash, ignore the root folder of the share?

Activity

  1. tanaikech commented on Jan 29, 2020

    @tanaikech
    Owner

    Thank you for the feature request. This was implemented at v1.2.5. Please check it. https://github.com/tanaikech/goodls#v125
    In your case, please test the following command.

    $ goodls -u https://drive.google.com/drive/folders/123123123 -d /localfolder/here/ -ntd
  2. remailednet commented on Feb 1, 2020

    @remailednet
    Author

    @tanaikech Awesome. I did some testing on my side and that feature works as expected for me.

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址