Use the tools library to determine file extension
The previous code determined the extension by splitting the file path on a dot (.), which failed when the file path contains dots in folder names. This commit fixes issue #14
Please register or sign in to comment