Commits
Click on a commit to change the comparison rangefix: preserve symlinks in get_directory instead of following them
This fixes an issue where symlinks were being resolved and their target
files copied during get_directory operations, which could potentially
expose sensitive files that were symlinked (e.g., credential files).
The fix adds symlinks=True to shutil.copytree calls in:
- LocalFileSystem.get_directory (both sync and async versions)
- GitHubRepository.get_directory
With this change, symlinks are preserved as symlinks in the destination
directory rather than being followed and their contents copied.
Closes #7868
Signed-off-by: majiayu000 <1835304752@qq.com>4 hours ago
by majiayu000