[Tutor] Testing network folder
Bernard Lebel
python at bernardlebel.com
Fri Aug 20 10:46:19 CEST 2004
I should precise that if I use
os.path.exists( '\\\\machineName\\sharedFolder\\anotherFolder' )
It works (returns true).
I'm even more confused now!
Bernard
----- Original Message -----
From: "Bernard Lebel" <python at bernardlebel.com>
To: <tutor at python.org>
Sent: Friday, August 20, 2004 10:38 AM
Subject: [Tutor] Testing network folder
> Hello,
>
> I'm trying something very basic, but for the life of I'm getting what I
> expect.
> I try to test the existence of a directory located on a network computer,
> using a UNC path.
>
> import os
> os.path.exists( '\\\\machineName\\sharedFolder' )
>
> Always return False.
> I'm on Windows XP, the target machine is a Windows machine, and there is a
> samba server between us.
> When I type
> \\machineName\sharedFolder
> in my Windows Explorer, well, I get there immediately.
>
> Is there anything I should be aware of?
>
>
> Thanks
> Bernard
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
More information about the Tutor
mailing list