結果 : check if path is a directory python