Reputation: 31
I am using Win2008 server + Apache2.2 + mod_python. I would make a folder using string value from the web form. It works in local drive
os.mkdir('D:\\temp\\" + folederName)`
But it does not work on network -
os.mkdir('\\\\192.168.131.200\\temp\\" + folederName)
How can I create a folder to the network computer?
Upvotes: 3
Views: 3693
Reputation: 22761
Wild Guess:
Mount the Share to a Driveletter, so you can access it via Z:\xyz.txt
because the \\\host\path
ist not really what can be handled in normal filesystem ops.
EDIT: and please use os.path.join()
instead of hardcoding the path stuff :)
Upvotes: 2