FileSystemManager.writeFile

2020-02-14 14:08 更新

FileSystemManager.writeFile(Object object)

寫文件


輸入

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

屬性類型默認(rèn)值是否必填說明
filePathstring要寫入的文件路徑
datastring/ArrayBuffer要寫入的文本或二進(jìn)制數(shù)據(jù)
encodingstringutf8指定寫入文件的字符編碼
說明
ascii
base64
binary
hex
ucs2/ucs-2/utf16le/utf-16le以小端序讀取
utf-8/utf8
latin1


輸出

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

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


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

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號