try: print ("Beginning temporary file removal") for x in sdeFiles: n = x.split('.')[-1] for e in fileExtns: delExtns = n + e delFile = 'G://GISAdmin//SDE_Backups//NewTempShapefiles//' + delExtns os.remove(delFile) print ("Temporary files deleted") except: print ("Error: " + extension + " does not exist") continue finally: print ("Delete complete")
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.