mike__a
Contributor
Contributor

VMware App Volumes file name too long error

Hi.

I use git with a custom precommit tool in Windows 10 VDI. Local git root is located in user profile. On some repos precommit tool fails with System.IO.PathTooLongException. I noticed that file names processed by precommit tool contain \SnapVolumesTemp\MountPoints\{<GUID>}\{<GUID>}\SVROOT in between C: and \Userprofile. This is obviously too long.

Since the tool is opensource I made it to extract that long App Volume part before file IO operations and it made the trick.

Now the question is, will IO to C:\SnapVolumesTemp\MountPoints\{<GUID>}\{<GUID>}\SVROOT\Users\username\file.txt have the same effect as to C:\Users\username\file.txt? Or maybe there is a better way to prevent this path too long exception?

Reply
0 Kudos