If a user enters in a path to either an individual audio file, or a directory, we want the --i parameter to handle all cases for ease-of-use. In order to achieve this we want to function to automatically detect whether a directory path has been passed in or if an individual file has been passed in. Maybe the os library has something to check for this, or you can use some sort of dictionary on the relevant audio file extensions to check. Not sure the best method there. This was explicitly requested by Mathias.
If a user enters in a path to either an individual audio file, or a directory, we want the --i parameter to handle all cases for ease-of-use. In order to achieve this we want to function to automatically detect whether a directory path has been passed in or if an individual file has been passed in. Maybe the os library has something to check for this, or you can use some sort of dictionary on the relevant audio file extensions to check. Not sure the best method there. This was explicitly requested by Mathias.