FileMap
with missing file(s) should optionally behave as if empty.
#500
Labels
FileMap
with missing file(s) should optionally behave as if empty.
#500
Whenever
FileMap
encounters a missing file (or the file cannot be read for other reasons) during access to the map (get()
orkeySet()
), an exception is thrown and theisUninitialized
flag remains unset (so it happens repeatedly on multiple accesses). For some use cases (e.g.,lookup()
in metafacture-fix) it might be preferable to ignore this error condition (maybe just log a warning) and continue as if the missing/unreadable file(s) were empty.Originally posted by @blackwinter in hbz/lobid-resources#1906 (comment)
The text was updated successfully, but these errors were encountered: