結果 : check if file is directory python