defensive-programming

How to ignore corrupted files?

How to ignore corrupted files? Question: How to loop through a directory in Python and open wave files that are good whilst ignoring bad (corrupted) ones? I want to open various wave files from a directory. However, some of these files may be corrupted, some may not be to specification. In particular there will be …

Total answers: 2