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: | 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!
Note:
See TracTickets
for help on using tickets.