Opened 17 years ago

Last modified 17 years ago

#5690 closed

Use os.path.dirname() not os.path.join(foo, '..') — at Initial Version

Reported by: Thomas Güttler <hv@…> Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If you use symlinks to directories using ".." will lead you
to the wrong directory.

Here is an example:
mkdir -p /tmp/dotdot/two
ln -s /tmp/dotdot/two/ /tmp/symlink
cd /tmp/symlink
ls ..

--> two
Content of /tmp/symlink, not /tmp!

Change History (1)

by Thomas Güttler <hv@…>, 17 years ago

Note: See TracTickets for help on using tickets.
Back to Top