File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ def compressXML(filename: str|pathlib.Path,
101101def uncompressMXL (filename : str | pathlib .Path ,
102102 * ,
103103 deleteOriginal = False ,
104+ silent = False ,
104105 strictMxlCheck = True ) -> bool :
105106 '''
106107 Takes a filename, and if the filename corresponds to a compressed musicXML
@@ -119,7 +120,8 @@ def uncompressMXL(filename: str|pathlib.Path,
119120 return False # not a compressed musicXML file
120121
121122 fp : pathlib .Path = common .pathTools .cleanpath (filename , returnPathlib = True )
122- environLocal .warn (f'Updating file: { fp } ' )
123+ if not silent : # pragma: no cover
124+ environLocal .warn (f'Updating file: { fp } ' )
123125 extractPath = str (fp .parent )
124126 unarchivedName = fp .with_suffix ('.musicxml' ).name
125127 # Export container and original xml file to system as a compressed XML.
You can’t perform that action at this time.
0 commit comments