using srcPath to get the extension