ファイルか

os.path.isfile(targetPath)

フォルダー

os.path.isdir(targetPath)

シンボリックリンクか

os.path.islink(targetPath)