drive icon indicating copy to clipboard operation
drive copied to clipboard

Specifying remote directories?

Open timmrogers opened this issue 10 years ago • 9 comments

I'd like to be able to use drive to push a network directory to Google Drive.

Is there a way to push, say, a directory mounted on /Volumes/archives to Storage/Archives on my Google Drive?

Thank you.

timmrogers avatar Nov 26 '14 23:11 timmrogers

This would be a really nice option. I also like to know if there is such a way.

nick4me avatar Dec 03 '14 15:12 nick4me

Please take a look at closed issue https://github.com/rakyll/drive/issues/10

odeke-em avatar Dec 03 '14 16:12 odeke-em

I'm not sure if that's really the same feature as asked.

Let me explain: I have a local folder /local/backups/dumps/ and this folder should be pushed/uploaded to the google drive folder /storage/backups/dumps/.

Is it possible?

nick4me avatar Dec 03 '14 16:12 nick4me

Ah I see, thanks for the clarification. Right now it is not possible since drive will resolve the context depending on whether the first path is a locally initialized Google Drive point. I agree this will be a very useful feature to add in. I'd be happy to get this feature in, but my final exams kick off this afternoon and I'll be busy for the next two weeks. If someone hasn't yet pushed up a PR implementing it by then, I will be able to get it in before Christmas.

odeke-em avatar Dec 03 '14 16:12 odeke-em

That sounds great! I'll keep an eye out. Good luck with your exams!

On Wed Dec 03 2014 at 8:45:51 AM Emmanuel Odeke [email protected] wrote:

Ah I see, thanks for the clarification. Right now it is not possible since drive will resolve the context depending on whether the first path is a locally initialized Google Drive point. I agree this will be a very useful feature to add in. I'd be happy to get this feature in, but my final exams kick off this afternoon and I'll be busy for the next two weeks. If someone hasn't yet pushed up a PR implementing it by then, I will be able to get it in before Christmas.

— Reply to this email directly or view it on GitHub https://github.com/rakyll/drive/issues/37#issuecomment-65443604.

timmrogers avatar Dec 03 '14 16:12 timmrogers

Thank you @timmrogers !

odeke-em avatar Dec 03 '14 16:12 odeke-em

Thank you very much. And good luck!

nick4me avatar Dec 04 '14 07:12 nick4me

Thank you @nick4me, I'll ping you when it comes through!

odeke-em avatar Dec 05 '14 08:12 odeke-em

Hey @nick4me, @timmrogers Christmas might be coming soon, hopefully :) I got some free time and have started a PR to address this issue. Not yet complete but so far I have a proof of concept that allows uploads from arbitrary paths directly to the drive. I'll def go through discussions and iterations. Please see PR #44

odeke-em avatar Dec 07 '14 09:12 odeke-em