Page 1 of 1

Zip sourcecode - .vscode folder missing

Posted: 19 Aug 2022 11:07
by TouYunG
I write app with visual code. When I zip source folder, Folder name ".vscode" is missing from output.zip.
Please fix it.

Re: Zip sourcecode - .vscode folder missing

Posted: 19 Aug 2022 17:24
by admin
Interesting! The same happens in File Explorer when you send a folder with a .vscode subfolder to "Compressed Folder". In fact, the problem seems to happen with any folder that starts with a dot. It is either a feature or a bug in the built-in "Compressed Folder" functionality, which is also used by XYplorer. Only MS can fix that.

Re: Zip sourcecode - .vscode folder missing

Posted: 19 Aug 2022 17:56
by Horst
If you have 7zip installed, make a button with a script like this:

Code: Select all

// Create 7z archive from selected items in target pane

  $app = "C:\Program Files\7-Zip\7z.exe";
  $sel = quote(get("SelectedItemsPathNames", '" "'));
  $dst = get("path", i) . "\" . <curfolder> . "_" . gpc(gettoken(<selitems |>, 1, "|"), "base") . ".7z";
  $opt = "-stl -mx=9 -myx=9 -mtc=on -mta=on"; // Plus all your other necessary options...
  run """$app"" a $opt ""$dst"" $sel";