結果 : python check if is dir or file