bgilbert/diamond-core-filters — pull request #1 by hongjaic (2012-05-24 17:37:32+00:00)
Title: examples: Fix directory determining logic

On libarchive 3.0.1 to 3.0.3, archive_entry_filetype() always returns
AE_IFREG, signifying that the underlying stream is a regular file if it
is seekable. Look for a trailing slash to ensure that directories are
not falsely evaluated, returning encoding error.