mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-04 11:55:30 -04:00
Report if archive is not readable #49
This commit is contained in:
parent
96b8186add
commit
1b9d83f367
@ -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. " \
|
||||
|
Loading…
x
Reference in New Issue
Block a user