結果 : check if folder or file python