Exemplo n.º 1
0
 def fileExists(self, filePath):
     if not os.path.exists(filePath):
         msg = "File: " + filePath + ", does not exist"
         raise CLIAudioFileException({filePath}, msg)
Exemplo n.º 2
0
 def fileExists(self, filePath):
     """Raises an exception when a file does not exist."""
     if not os.path.exists(filePath):
         msg = "File: " + filePath + ", does not exist"
         raise CLIAudioFileException({filePath}, msg)
Exemplo n.º 3
0
 def fileIsNotWav(self, filePath):
     if not filePath[-4:] == ".wav":
         msg = "File: ", +filePath + ", is not a of wav format"
         raise CLIAudioFileException({filePath}, msg)
Exemplo n.º 4
0
 def fileIsNotWav(self, filePath):
     """Raises an exception when a file is not a of `wav` format."""
     if not filePath[-4:] == ".wav":
         msg = "File: ", +filePath + ", is not a of wav format"
         raise CLIAudioFileException({filePath}, msg)