So right after I renewed my Win10 installation I installed WSL (Windows Subsystem for Linux) and played around with it, including X410’s X-server and getting GIMP up and running in my Windows environment. Awesome.

I was also using it to clone my git repos, which I keep in a folder C:\Repos. I created the folder in my WSL environment, not knowing it would actually set a flag on that folder. Ever since, this folder is case-sensitive. No biggy, except when some Windows application think it’s funny to lowercase a full path and then tries to access it.

Just a simple example from the Python-debugger in VSCode:
pydev debugger: warning: trying to add breakpoint to file that does not exist: c:\repos\azure_test\ict\azure\mqttclient.py (will have no effect)

This path does exist, but is actually C:\Repos\azure_test\ict\azure\mqttclient.py.

This this C:\Repos folder, and all its sub folders, don’t contain anything important for the Linux subsystem, I’ve recursively reverted all paths to be case-insensitive. You can do this with a handy Powershell snippet:
(Get-ChildItem -Recurse -Directory -Path 'C:\Repos').FullName | ForEach-Object {fsutil.exe file setCaseSensitiveInfo $_ disable}

Make sure you run this as Administrator. At your own risk, obviously.

Advertisement