odeke-em/drive

export: allow unloading to a single directory instead of each sub-directory per export

AtcR opened this issue · 5 comments

AtcR commented

I'm trying to pull and export some docs files to pdf (app 900) without make a lot of directories.

drive pull -force -export pdf -exports-dir /home/xxxxxx/gdrive/PDF/ -id xxxxxxx

But each export make his own folder into PDF.
How can i insert each exported file into only one directorie/folder?

I know my English is not perfect and I will really appreciate if you could give me a hand on this problem.

Hello there @AtcR, thanks for the issue and welcome to drive.

Yes in deed, currently it creates a directory per file but that's because you can export to multiple formats(e.g pdf, txt, rtf, png etc) and also to avoid cluttering one directory. A feature request could be to allow dumping exports into a common directory.

I'd love to have the ability to export files in their original directories even if it clutters them.
Also, it would be great to be able to skip the ".desktop" files when they were exported.

Of course, it shouldn't be the default behaviour and I can live without it but I'd love these options.

@chevillet thanks for chiming in, actually would you mind filing a separate issue about skipping the creation of *.desktop files?
Otherwise I have a CL coming up in a second to implement this request in this issue.

Hi @odeke-em!
Thanks a lot for this new feature, it's really cool.
And sorry about the *.desktop request, I should have created a different issue in the first place, my bad.

No worries at all. I see you've created the issue, I am going to get started working on it as we speak 🙏🏾