結果 : python determine if path is file or directory