Re: Cross-platform file paths

2010-05-08 Thread Wolfgang Rohdewald
On Sonntag 09 Mai 2010, Tim Roberts wrote: > No. On Linux, you need to mount the share in some empty > directory (using mount or smbmount), then read the files from > that directory. actually the mount directory does not have to be empty - whatever it contains is invisible while someting is mount

Re: Cross-platform file paths

2010-05-08 Thread Tim Roberts
utabintarbo wrote: > >Until now, I have used the UNC under Windows (XP) to allow my program >to access files located on a Samba-equipped *nix box (eg. >os.path.normpath(r"\\serverFQDN\sharename\dir\filename")). When I try >to open this file under Linux (Red Hat 5), I get a file not found >error. >

Re: Cross-platform file paths

2010-05-08 Thread News123
Hi TIA, utabintarbo wrote: > Until now, I have used the UNC under Windows (XP) to allow my program > to access files located on a Samba-equipped *nix box (eg. > os.path.normpath(r"\\serverFQDN\sharename\dir\filename")). When I try > to open this file under Linux (Red Hat 5), I get a file not found

Re: Cross-platform file paths

2010-05-07 Thread utabintarbo
On May 7, 11:23 am, cassiope wrote: > > normpath will convert forward slashes to backslashes on WinXX systems, > but > does not seem to do the reverse on posix systems...so try changing > your > string to use forward slashes.  Also- is the path otherwise the same > on > your Linux system? > > HTH.

Re: Cross-platform file paths

2010-05-07 Thread cassiope
On May 7, 7:32 am, utabintarbo wrote: > Until now, I have used the UNC under Windows (XP) to allow my program > to access files located on a Samba-equipped *nix box (eg. > os.path.normpath(r"\\serverFQDN\sharename\dir\filename")). When I try > to open this file under Linux (Red Hat 5), I get a fil

Cross-platform file paths

2010-05-07 Thread utabintarbo
Until now, I have used the UNC under Windows (XP) to allow my program to access files located on a Samba-equipped *nix box (eg. os.path.normpath(r"\\serverFQDN\sharename\dir\filename")). When I try to open this file under Linux (Red Hat 5), I get a file not found error. Is there a cross-platform m