You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a file name contains non-UTF8 characters in a UTF8 locale (ex: latin1), the command crashes or hangs. I haven't found the conditions that makes it either crash or hang.
When it crashes, the error is: thread '<unnamed>' panicked at 'called Option::unwrap()on aNone value', /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/diskscan-0.3.0/src/scanner.rs:295:67
The text was updated successfully, but these errors were encountered:
Thanks for the report.
Condition is exactly at scanner.rs:295 - calling unwrap on Option<&str> which is None. Since filename was not utf8 so to_str() returned None
In this app I everywhere assume that all file paths are well formed utf8 strings which obviously not always the case, but it was good enough assumption at the start (and in my cases that was always correct).
Some refactor needs to be done to switch from String to OsString/PathBuf that will fix the problem.
When a file name contains non-UTF8 characters in a UTF8 locale (ex: latin1), the command crashes or hangs. I haven't found the conditions that makes it either crash or hang.
When it crashes, the error is:
thread '<unnamed>' panicked at 'called
Option::unwrap()on a
Nonevalue', /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/diskscan-0.3.0/src/scanner.rs:295:67
The text was updated successfully, but these errors were encountered: