jaraco/path.py
def splitext_files_only(filepath):
	"Custom version of splitext that doesn't perform splitext on directories"
	return (
		(filepath, '') if os.path.isdir(filepath) else os.path.splitext(filepath)
	)
def splitext_files_only(filepath):
	"Custom version of splitext that doesn't perform splitext on directories"
	return (
		(filepath, '') if os.path.isdir(filepath) else os.path.splitext(filepath)
	)
def splitext_files_only ( filepath ) : return ( ( filepath , '' ) if os . path . isdir ( filepath ) else os . path . splitext ( filepath ) )
Custom version of splitext that doesn't perform splitext on directories
Custom version of splitext that doesn t perform splitext on directories