Cross-platform file paths

utabintarbo utabintarbo at gmail.com
Fri May 7 10:32:49 EDT 2010


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 method for accessing files on a network
share using Python 2.X?

TIA



More information about the Python-list mailing list