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:
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")