summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--library/files/file2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/files/file b/library/files/file
index d2a20dbb7a..29c491b766 100644
--- a/library/files/file
+++ b/library/files/file
@@ -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)