ouch
ouch copied to clipboard
Ignore __MACOSX by default
Steps to reproduce
ouch d Archive.zip with the following file.
Expected behavior
I want it creates Archive directory with a.htm, b.htm.
Actual behavior
It creates __MACOSX directory additionally.
Addtional context
unzip utility also do this, but I think __MACOSX directory is not necessary in most cases.
:+1: yeah, that would be convenient.
Should we only do it if __MACOSX is the only directory? It's possible for archives to contain other folders alongside it.
As you say an archive can contain other directories, so how about ignoring that directory when it contains no file? It seems to have empty directories.
Sorry, I assumed the wrong archive structure.
$ ouch list Archive.zip --tree
Archive: /home/marcospb19/Downloads/Archive.zip
├── b.htm
├── a.htm
└── __MACOSX
└── ._a.htm
So __MACOSX is actually a folder that might include some content :thinking:.