Re: os.path.realpath(path) bug on win7 ?

Discussion in 'Python' started by Chris Rebert, Jan 6, 2013.

  1. Chris Rebert

    Chris Rebert Guest

    On Sat, Jan 5, 2013 at 10:55 PM, iMath <> wrote:
    >
    > os.path.realpath(path) bug on win7 ?
    >
    > Temp.link is a Symbolic link
    > Its target location is C:\test\test1
    > But
    > >>> os.path.realpath(r'C:\Users\SAMSUNG\Temp.link\test2')

    > 'C:\\Users\\SAMSUNG\\Temp.link\\test2'
    >
    > I thought the return value should be ' C:\\test\\test1\\test2'
    >
    > Is it a bug ? anyone can clear it to me ?


    What does os.path.islink('C:/Users/SAMSUNG/Temp.link') report?

    Cheers,
    Chris
    Chris Rebert, Jan 6, 2013
    #1
    1. Advertising

  2. Chris Rebert

    iMath Guest

    在 2013å¹´1月6日星期日UTC+8下åˆ3æ—¶06分10秒,Chris Rebert写é“:
    > On Sat, Jan 5, 2013 at 10:55 PM, iMath <> wrote:
    >
    > >

    >
    > > os.path.realpath(path) bug on win7 ?

    >
    > >

    >
    > > Temp.link is a Symbolic link

    >
    > > Its target location is C:\test\test1

    >
    > > But

    >
    > > >>> os.path.realpath(r'C:\Users\SAMSUNG\Temp.link\test2')

    >
    > > 'C:\\Users\\SAMSUNG\\Temp.link\\test2'

    >
    > >

    >
    > > I thought the return value should be ' C:\\test\\test1\\test2'

    >
    > >

    >
    > > Is it a bug ? anyone can clear it to me ?

    >
    >
    >
    > What does os.path.islink('C:/Users/SAMSUNG/Temp.link') report?

    True
    >
    >
    >
    > Cheers,
    >
    > Chris
    iMath, Jan 6, 2013
    #2
    1. Advertising

  3. Chris Rebert

    iMath Guest

    在 2013å¹´1月6日星期日UTC+8下åˆ3æ—¶06分10秒,Chris Rebert写é“:
    > On Sat, Jan 5, 2013 at 10:55 PM, iMath <> wrote:
    >
    > >

    >
    > > os.path.realpath(path) bug on win7 ?

    >
    > >

    >
    > > Temp.link is a Symbolic link

    >
    > > Its target location is C:\test\test1

    >
    > > But

    >
    > > >>> os.path.realpath(r'C:\Users\SAMSUNG\Temp.link\test2')

    >
    > > 'C:\\Users\\SAMSUNG\\Temp.link\\test2'

    >
    > >

    >
    > > I thought the return value should be ' C:\\test\\test1\\test2'

    >
    > >

    >
    > > Is it a bug ? anyone can clear it to me ?

    >
    >
    >
    > What does os.path.islink('C:/Users/SAMSUNG/Temp.link') report?

    True
    >
    >
    >
    > Cheers,
    >
    > Chris
    iMath, Jan 6, 2013
    #3
    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. Peng Yu
    Replies:
    0
    Views:
    452
    Peng Yu
    Oct 31, 2009
  2. Peng Yu
    Replies:
    0
    Views:
    532
    Peng Yu
    Oct 31, 2009
  3. Jurko Gospodnetiæ

    os.path.realpath() and os.path.abspath()

    Jurko Gospodnetiæ, Jan 11, 2011, in forum: Python
    Replies:
    1
    Views:
    504
    Adam Skutt
    Jan 12, 2011
  4. iMath
    Replies:
    0
    Views:
    99
    iMath
    Jan 6, 2013
  5. Victor Stinner

    Re: os.path.realpath(path) bug on win7 ?

    Victor Stinner, Jan 6, 2013, in forum: Python
    Replies:
    2
    Views:
    127
    iMath
    Jan 7, 2013
Loading...

Share This Page