Report if archive is not readable #49

This commit is contained in:
Alex Ling 2020-06-01 04:54:28 +00:00
parent 96b8186add
commit 1b9d83f367

View File

@ -114,6 +114,11 @@ class Title
next
end
if [".zip", ".cbz", ".rar", ".cbr"].includes? File.extname path
unless File.readable? path
Logger.warn "File #{path} is not readable. Please make sure the " \
"file permission is configured correctly."
next
end
archive_exception = validate_archive path
unless archive_exception.nil?
Logger.warn "File #{path} is corrupted or is not a valid archive. " \