darrenldl / blockyarchive

Blocky archive - multithreaded archiver offering bit rot protection and sector level recoverability
MIT License
95 stars 4 forks source link

Path file name part extraction function panics #249

Closed darrenldl closed 5 years ago

darrenldl commented 5 years ago

file_utils::get_file_name_part_of_path panics if std::path::Path::file_name returns None due to use of unwrap on the result.

This affects encode and decode mode during file path computation.