unc paths in os.path.walk on win2000?

Discussion in 'Python' started by leo, Apr 8, 2004.

  1. leo

    leo Guest

    how can i use unc paths in os.path.walk on win2000?

    i tried the \\server\path representation in python 2.3 and it didn't work...

    thanks, leo
     
    leo, Apr 8, 2004
    #1
    1. Advertising

  2. leo

    R.Marquez Guest

    I'm not sure if this is the problem but from the little info you give...

    You may have to escape the backlash like this:

    "\\\\server\\path"

    Or, you may want to use raw strings like this:

    r"\\server\path"

    -Ruben

    "leo" <> wrote in message news:<c52ulo$1heb$>...
    > how can i use unc paths in os.path.walk on win2000?
    >
    > i tried the \\server\path representation in python 2.3 and it didn't work...
    >
    > thanks, leo
     
    R.Marquez, Apr 8, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tor Rest

    Copy using UNC paths

    Tor Rest, Aug 11, 2003, in forum: Perl
    Replies:
    1
    Views:
    3,747
    J├╝rgen Exner
    Aug 12, 2003
  2. =?Utf-8?B?U3RldmU=?=

    Directory.Exists() with UNC Network Paths

    =?Utf-8?B?U3RldmU=?=, Feb 11, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    777
    =?Utf-8?B?U3RldmU=?=
    Feb 11, 2006
  3. news.amnet.net.au

    ftp with java using UNC paths ?

    news.amnet.net.au, Feb 16, 2004, in forum: Java
    Replies:
    0
    Views:
    822
    news.amnet.net.au
    Feb 16, 2004
  4. Marcus Alves Grando
    Replies:
    7
    Views:
    470
    Marcus Alves Grando
    Nov 14, 2007
  5. dude
    Replies:
    5
    Views:
    1,715
    Jussi Piitulainen
    Mar 17, 2011
Loading...

Share This Page