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: | 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 )
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 , 17 years ago
Attachment: | use_dirname_not_dot_dot.diff added |
---|
comment:1 by , 17 years ago
Component: | Uncategorized → django-admin.py |
---|---|
Description: | modified (diff) |
Note:
See TracTickets
for help on using tickets.
fixed ticket formatting