Fix linking issue to directories in file module

The os.path.isdir() returns True for symlinks that point to directories,
so we also need to check to make sure it's not a symlink too.

Fixes #7657
release1.6.3
James Cammarata 11 years ago
parent 2625196f5d
commit 10074d3622

@ -182,7 +182,7 @@ def main():
elif state in ['link','hard']:
if os.path.isdir(path):
if os.path.isdir(path) and not os.path.islink(path):
relpath = path
else:
relpath = os.path.dirname(path)

Loading…
Cancel
Save