Shared folders and capitalization

dianders

Bit poster
I just sent this to email support, but posting here too in the hopes that it will help someone. I've noticed that Parallels shared folders don't work quite right with respects to capitalization of filenames. Specifically, there are times where a program running in the Windows VM won't be able to find a file living in a shared folder because of a slight difference in capitalization. Both the Mac and Windows should be case-insensitive.

I have narrowed down the problem to the "stat" routine, and written some python code to prove the point. This code will run just fine when run from the "C:" in windows or even from a samba share. However, it will fail if run from a parallels shared folder.

I hope this helps someone:

#!/usr/bin/env python

import os

# Create the file as "test.txt", with the word "hello" in it.
f = open("test.txt", "w")
f.write("hello")
f.close()

# Open the file using different capitalization, just to prove that it should
# work.
f = open("TEST.txt", "r")
for line in f:
print line
f.close()

# Try using both capitalization with stat(). These should both work, but
# the second one doesn't over shared folders.
print os.stat("test.txt")
print os.stat("TEST.txt")
 
I have noticed the same thing. This causes me many problems with some developer tools that I use regularly. I hope they fix this.
 
has this been fixed?

What is the status of this issue? I think I'm running into it too, using build 5160.
 
It seemed like this particular bug was fixed when I tested it. ...however, there appear to be more similar ones, since I still have some issues with Parallels Shared Folders.
 
Back
Top