RKrahl / archive-tools

Tools for managing archives
Apache License 2.0
1 stars 2 forks source link

archive-tool create should ignore files with invalid type #34

Closed RKrahl closed 5 years ago

RKrahl commented 5 years ago

archive-tool only supports certain file types that may be added to an archive, currently regular files, directories, and symbol links. If trying to add a file having an invalid type, such as a socket, archive-tool create throws an error:

$ archive-tool create archive-tmp.tar /tmp   
archive-tool create: error: /tmp/.X11-unix/X0: invalid file type

Should ignore files with invalid type on create instead (but may still emit a warning, though).