ChrisYounger / config_explorer

Config viewer and file editor for Splunk. Based on VSCode.
GNU Affero General Public License v3.0
28 stars 7 forks source link

File cannot be extracted on Windows #20

Open tmontney opened 3 years ago

tmontney commented 3 years ago

File was uploaded but could not be extracted because the required application (tar/unzip) not found.

I've gotten this on Linux, where I installed unzip to fix the issue. On Windows, unzipping should be natively available, so I'm not sure why it can't extract.

ChrisYounger commented 3 years ago

Yeah unfortunatly this feature requires you to use the Linux subsystem in Windows. You can enable it like so: https://docs.microsoft.com/en-au/windows/wsl/install-win10#enable-the-windows-subsystem-for-linux-feature-gui

You can also install cygwin.

tmontney commented 3 years ago

It looks like you're calling it through line 47, subprocess. Why not just use PowerShell's Expand-Archive or CMD and CreateObject("Scripting.FileSystemObject")?

ChrisYounger commented 3 years ago

yeah that seems like a good idea. I don't have any experience with Powershell, but if you did want to send me the code to make this work that I can include it.