Menu

#837 Ignore Hidden Files When Compressing

open
nobody
None
5
2019-02-06
2009-02-11
JohnnyBoy
No

When archiving directories that are under source control, I often want to exclude the source control directories before sending the source to someone.

At the moment I have two methods to do this
1) Copy the directory somewhere else and use Windows Explorer to find the CVS or SVN directories, delete everything that comes up in the search results, compress the folder with 7zip then delete the copied directory.
2) Use the command line to exclude files like Entries, Entries.Old, CVS, SVN etc

Since it can be done via the command line, would it not be possible to have an option in the GUI that says "Exclude Hidden Files" or "Exclude source control directories" or something?

Discussion

  • JohnnyBoy

    JohnnyBoy - 2009-02-20

    The command line parameter to do this is:
    cd "C:\Program Files\7-Zip"
    7z a -tzip c:\Temp\myFile.zip C:\Temp\Software\source\*.* -r -x!*.class -x!Entries -x!Entries.Old -x!Entries.Extra.Old -x!Entries.Extra -x!Repository -x!Root -x!Tag -x!.svn

     
  • Gordon

    Gordon - 2009-03-16

    Same problem here. Would be nice to be able to enter the -x!.svn in the GUI. Moreover imo 7z should use the explorer setting for including hidden or system files in the archive.

     
  • Ted

    Ted - 2019-02-06

    This would be helpful. Love using Explorer to create a quick zip, but don't want the entire .git repo.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.