odeke-em / drive

Google Drive client for the commandline
Apache License 2.0
6.69k stars 427 forks source link

Google Drive Client doesn't work on a network path #981

Open nassausky opened 6 years ago

nassausky commented 6 years ago

The following commands asks for authorization

drive init \\192.168.1.200\Share\~\gdrive\CurrentPackets

Then I type in the correct authorization code. No errors during initialization but when I try

cd ~/gdrive/CurrentPackets
drive push -ignore-name-clashes 

I get the following error:

no drive context found; rundrive initor go into one of the directories (sub directories) that you performeddrive init``

nassausky commented 6 years ago

I did a couple things to resolve. (Don't think it was a network issue but running it from a batch file) My Solution: 1) I mapped a network drive N: to the network path. 2) I changed directories to the network drive before running the command.

odeke-em commented 6 years ago

@nassausky thank you for the report and welcome to drive!

So can you confirm that actually your cd ~/gdrive/CurrentPackets is the same directory that was mapped to? From the looks of it, it doesn't look like it immediately. In order for drive to work the directories have to be properly mapped. Am not sure that there is more that we can do here.