Zip sourcecode - .vscode folder missing

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
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: 67229
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: 1419
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 26H2 (OS Build 26300.9974)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1424b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta

Post Reply