FileSystemManager.saveFile

2020-02-14 13:48 更新

FileSystemManager.saveFile(Object object)

保存臨時文件到本地。此接口會移動臨時文件,因此調(diào)用成功后,tempFilePath 將不可用。本地文件存儲上限:50M。


輸入

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

屬性類型默認(rèn)值是否必填說明
tempFilePathstring臨時存儲文件路徑
filePathstring要存儲的文件路徑


輸出

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

屬性類型說明
savedFilePathstring存儲后的文件路徑

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

屬性類型說明
errMsgstring錯誤信息
說明
fail tempFilePath file not exist指定的 tempFilePath 找不到文件
fail permission denied, open "${filePath}"指定的 filePath 路徑?jīng)]有寫權(quán)限
fail no such file or directory "${dirPath}"上級目錄不存在


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

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號