This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author computercrustie
Recipients computercrustie
Date 2008-02-08.06:15:35
SpamBayes Score 0.19723275
Marked as misclassified No
Message-id <1202451338.42.0.378471584702.issue2047@psf.upfronthosting.co.za>
In-reply-to
Content
shutil.destinsrc(src,dst)

Checks if 'dst' starts with 'src', which can return a wrong result if
'dst' even starts with 'scr' but isn't really a subdirector of it. E.g.
(src=r'C:\data', dst=r'C:\data.old') returned true, although dst isn't a
subdirectory of src.

I tried to fix this creating the absolute paths of 'dst' and 'src'
appended the path seperator, if there wasn't one. Then did the check
again and now the result is correct.

See the diff file I've appended (and hopefully created correctly)
History
Date User Action Args
2008-02-08 06:15:38computercrustiesetspambayes_score: 0.197233 -> 0.19723275
recipients: + computercrustie
2008-02-08 06:15:38computercrustiesetspambayes_score: 0.197233 -> 0.197233
messageid: <1202451338.42.0.378471584702.issue2047@psf.upfronthosting.co.za>
2008-02-08 06:15:36computercrustielinkissue2047 messages
2008-02-08 06:15:35computercrustiecreate