[ python-Bugs-1027570 ] os.stat errors when using shared drive on XP or NT

SourceForge.net noreply at sourceforge.net
Tue Sep 14 00:26:27 CEST 2004


Bugs item #1027570, was opened at 2004-09-13 17:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1027570&group_id=5470

Category: Windows
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: zeke (zeke_matzke)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.stat errors when using shared drive on XP or NT

Initial Comment:
The problem is when a file is executed from a shared drive
then no letter drive name exists. So the result returned
by os.path.exists(os.getcwd()) does not return true.
Problem exists for both Active State and Idle on windows
for both XP and NT2000: The problem is with os.stat even
though the file open seems to work ok. Notice other
error for Active State Python.

Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200
32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more
information.

IDLE 1.0.2      ==== No Subprocess ====
>>> import os
>>> os.getcwd()
'\\Tardis\QCOS'
>>> os.path.exists(os.getcwd())
False
>>> os.stat(os.getcwd())
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in ?
    os.stat(os.getcwd())
OSError: [Errno 2] No such file or directory:
'\\Tardis\QCOS'
>>> 



PythonWin 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC
v.1200 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond
(mhammond at skippinet.com.au) - see 'Help/About
PythonWin' for further copyright information.
>>> Traceback (most recent call last):
  File
"C:\Python23\Lib\site-packages\Pythonwin\pywin\framework\intpyapp.py",
line 332, in OnFileRun
    scriptutils.RunScript(None, None, showDlg)
  File
"C:\Python23\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py",
line 259, in RunScript
    path = win32ui.FullPath(path)
win32ui: The file name is invalid
win32ui: Error in Command Message handler for command
ID 36864, Code 0
>>> import os
>>> os.getcwd()
'\\Tardis\QCOS'
>>> os.path.exists(os.getcwd())
False
>>> os.stat(os.getcwd())
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
OSError: [Errno 2] No such file or directory:
'\\Tardis\QCOS'
>>>



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1027570&group_id=5470


More information about the Python-bugs-list mailing list