結果 : python pathlib check if directory or file