Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Compress-Archive should expose -FollowSymlink parameter #94

Open
tnorrisvnc opened this issue May 12, 2020 · 0 comments
Open

Compress-Archive should expose -FollowSymlink parameter #94

tnorrisvnc opened this issue May 12, 2020 · 0 comments

Comments

@tnorrisvnc
Copy link

Summary of the new feature/enhancement

Compress-Archive should be able to compress files in symbolic link directories. Currently, if you have a directory structure like:

folder_to_compress
|--regular_subdir
|  |--regular_file
|--symlink_subdir
   |--symlink_file

and you run
Compress-Archive -Path .\folder_to_compress -DestinationPath compressed.zip

The output file is missing symlink_subdir and symlink_file, at least on Windows.

Proposed technical implementation details

Expose -FollowSymlink from Get-ChildItem as a parameter to Compress-Archive, or use -FollowSymlink by default.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants