結果 : check if path is folder or file python