2

BACKGROUND

When installing Google File Stream on my PC, it creates a new G: drive, and a directory named My Drive in it, containing a mirror of my Google drive directories and files.

PROBLEM

When using certain software, such as Unity or Android Studio, they specifically say to not keep files and projects in paths that contain white spaces.

Since I keep all my files in the My Drive dir which contains a whitespace, I'm unable to store my Unity (etc.) projects there. Obviously, this isn't some nische feature - it's my ability to sync and backup my projects, an ability I'm paying for.

To clarify, I have tried opening porjects in the My Drive path, and indeed it failed.

THINGS I'VE TRIED

Changing the folder name to, say, MyDrive isn't possible, as can be seen here: error msg prohibiting this

I've spoken to a google representative which didn't offer help or any insights to the problem.

Any workarounds that can let me store projects (in said frameworks) and sync them with my Google Drive account?

1 Answers1

0

There are number of ways to map paths in Windows that can workaround the problem.

Probably the best one is to use directory junctions as they are persistent and don't require admin rights.

mklink /j %USERPROFILE%\GDrive "g:\My Drive"

You can also try making symbolic link but it requires admin rights and I'm not aware of any advantages.


Another option is to map path to drive letter using subst or registry. This gives nice short paths and might be preferred if you type it a lot. This is pretty well described in Wikipedia.

  • subst - specific to user session, doesn't survive reboot unless you add it to startup, doesn't require admin:

    subst u: "g:\My Drive"
    
  • registry - persistent system-wide way, needs admin:

    reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices" /v "U:" /d "\\??\\G:\My Drive"
    

    then reboot