Zip sourcecode - .vscode folder missing

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
TouYunG
Posts: 6
Joined: 19 Aug 2022 11:03

Zip sourcecode - .vscode folder missing

Post by TouYunG »

I write app with visual code. When I zip source folder, Folder name ".vscode" is missing from output.zip.
Please fix it.

admin
Site Admin
Posts: 66619
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Zip sourcecode - .vscode folder missing

Post 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.

Horst
Posts: 1400
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Zip sourcecode - .vscode folder missing

Post 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";

Windows 11 Home, Version 25H2 (OS Build 26200.9278)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1423b (x64), Everything Toolbar 3.2, Listary Pro 7.0.0.9 beta

Post Reply