forked from cuthbertLab/music21
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP-MEI: Robuster detection in converter.Converter.getFormatFromFileE…
…xtension() On POSIX systems (i.e., everything but Windows) the "file" command is used to help determine whether the MIME-type and file extension both match a format known to music21. This allows more reliable filetype detection, more consistent error messages with unsupported types, and greater resilience against maliciously-constructed files.
- Loading branch information
Showing
1 changed file
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters