Closed GoogleCodeExporter closed 9 years ago
Also mapped server paths like \\servername\folder\folder2 don't work: error is:
File path \\userfs\stafffs\sccv1\w2k is neither a directory or a file:
Original comment by charliej...@gmail.com
on 20 Dec 2007 at 1:57
Bookmarking for later: a C program showing how to find the actual location of a
Windows share:
http://msdn2.microsoft.com/en-us/library/aa385334(VS.85).aspx
It seems the root problem is that os.isdir() returns FALSE for a Windows share,
so
the current code in filespec.py bombs.
Original comment by charliej...@gmail.com
on 21 Dec 2007 at 11:46
http://mail.python.org/pipermail/python-announce-list/1999-July/000106.html
RB suggest we could do os.path.isdir(foo) or os.path.isdir(foo + '\\') (but
only on
Windows as on Linux you can conceivably have '\' as part of the filename).
Original comment by charliej...@gmail.com
on 21 Dec 2007 at 12:07
Actually, you could just do:
os.path.isdir(foo) or os.path.isdir(foo + os.path.sep)
which will be the equivalent to the previous suggestion, and work correctly on
unixoids too.
Original comment by boulton.rj@gmail.com
on 9 Jan 2008 at 10:38
The last suggestion works, but *only with the command line version of flax* - I
think
this is a permissions problem, as the command line version will run as the local
user, whereas the Service won't.
Original comment by charliej...@gmail.com
on 9 Jan 2008 at 11:17
Setting up the Service to act not as the Local System account, but to use an
account
that has access to the network share, fixes this problem. I'll add a FAQ entry
on this.
Original comment by charliej...@gmail.com
on 9 Jan 2008 at 11:21
I assume you need to apply the os.path.isdir(foo) or os.path.isdir(foo +
os.path.sep)
change as well, or it won't recurse into the drive even if it has permission?
Original comment by boulton.rj@gmail.com
on 9 Jan 2008 at 11:22
Yes, I've committed that.
Original comment by charliej...@gmail.com
on 9 Jan 2008 at 11:31
Original issue reported on code.google.com by
charliej...@gmail.com
on 20 Dec 2007 at 1:56