Opened 17 years ago

Last modified 17 years ago

#5690 closed

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

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 (last modified by Gary Wilson)

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 (2)

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

comment:1 by Gary Wilson, 17 years ago

Component: Uncategorizeddjango-admin.py
Description: modified (diff)

fixed ticket formatting

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