listdir reports [Error 1006] The volume for a file has been externally altered so that the opened file is no longer valid
per.olav.kroka at ericsson.com
Wed Jan 7 17:17:52 CET 2009
os.listdir() keep giving this error:
[Error 1006] The volume for a file has been externally altered so that the
opened file is no longer valid:
The V:\\ETOPOK_Example_MyTestView refer to a ClearCase (CC) dynamic view.
I have found that MS Visual Studio.Net 2002 and 2003 seems to have this
problem with CC. But I am not using any of MS's Visual Studios. (see
The seen problem only to appear when some/all caches have forgot about the
directory. If I query the directory again (multiple times) listdir() will
finally return the content of the directory.
The "DOS" command DIR has no problem listing the same directory.
'2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]'
(5, 0, 2195, 2, 'Service Pack 4')
PS: Why does the listdir() function add '*.*' to the path?
PS2: Why does the listdir() function add '/*.*' to the path on windows and
not '\\*.*' ?
More information about the Python-list