briandorsey / wavrw

wavrw is a command line tool to read and write WAV files with a focus on visualizing the structure of files and parsing metadata.
Apache License 2.0
2 stars 1 forks source link

error when directory passed to `view` command #53

Closed briandorsey closed 5 months ago

briandorsey commented 6 months ago
% cargo run view test_wavs 
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s
     Running `target/debug/wavrw view test_wavs`
test_wavs
      offset id         size summary
Error: 
 ╺━━━━━━━━━━━━━━━━━━━━┅ Backtrace ┅━━━━━━━━━━━━━━━━━━━━╸

 0: Error: Is a directory (os error 21)
           While parsing field 'self_0' in FourCC
     at src/lib.rs:95
 1: While parsing field 'id' in Riff
     at src/chunk/riff.rs:9
briandorsey commented 5 months ago

Also a problem if there is a sub directory in a list of files. If directory\* has subdirectories for example.