[cli] fix # 81
This commit is contained in:
@@ -1073,7 +1073,9 @@ Examples:
|
|||||||
try:
|
try:
|
||||||
# Ensure both paths are resolved before computing relativity
|
# Ensure both paths are resolved before computing relativity
|
||||||
file_path_resolved = file_path.resolve()
|
file_path_resolved = file_path.resolve()
|
||||||
relative_path = file_path_resolved.relative_to(docs_path)
|
# Determine directory scope using the non-resolved path to avoid
|
||||||
|
# misclassifying symlinked entries as outside the docs directory
|
||||||
|
relative_path = file_path.relative_to(docs_path)
|
||||||
if not include_hidden and _path_has_hidden_segment(relative_path):
|
if not include_hidden and _path_has_hidden_segment(relative_path):
|
||||||
continue
|
continue
|
||||||
# Use absolute path for gitignore matching
|
# Use absolute path for gitignore matching
|
||||||
|
|||||||
Reference in New Issue
Block a user