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

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

Closed
remailednet opened this issue Jan 27, 2020 · 2 comments

Comments

@remailednet
Copy link

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?

@tanaikech
Copy link
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

@remailednet
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants