字節(jié)跳動小程序開發(fā)API FileSystemManager.unlink

2019-08-27 18:45 更新

刪除文件

輸入


繼承標(biāo)準(zhǔn)對象輸入,擴(kuò)展屬性描述:

屬性 類型 默認(rèn)值 是否必填 說明
filePath string 要刪除的文件路徑

輸出

fail 回調(diào)函數(shù)參數(shù) Object

屬性 類型 說明 支持版本
errMsg string 錯誤信息
說明
fail permission denied, open ${path} 指定的 path 路徑?jīng)]有讀權(quán)限
fail no such file or directory ${path} 文件不存在
fail operation not permitted, unlink ${filePath} 傳入的 filePath 是一個目錄


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號