here is snippet:
p = r"\\server\folder1\folder2"
print p
files = os.listdir(p)
print "found files: ", len(files)
The output on 32bit machine:
\\server\folder1\folder2
found files: 9818
The output on 64bit machine:
\\server\folder1\folder2
found files: 9818
or
\\server\folder1\folder2
<type 'exceptions.WindowsError'> [Error 24] The program issued a command but the command length is incorrect: '\\\\server\\folder1\\folder2/*.*'
I have tried - Python 2.5, 2.7, 32bit and also 64bit (on 64bit machines). - machines are 32bit and 64bit.
The network share is accessible and I have read/write rights.
Any one knows why the error is raised only on 64bit machine???
thx, r