FileSystemManager.appendFile

2020-02-14 14:13 更新

FileSystemManager.appendFile(Object object)

暫未支持

在文件結(jié)尾追加內(nèi)容


輸入

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

名稱數(shù)據(jù)類型屬性默認(rèn)值描述
filePathstring要追加內(nèi)容的文件路徑
datastring/ArrayBuffer要追加的文本或二進(jìn)制數(shù)據(jù)
encodingstringutf8指定寫入文件的字符編碼

encoding 字段值

說明
ascii
base64
binary
hex
ucs2/ucs-2/utf16le/utf-16le以小端序讀取
utf-8/utf8
latin1


輸出

fail 回調(diào)函數(shù)接收的對(duì)象擴(kuò)展屬性:

屬性類型說明支持版本
errMsgstring錯(cuò)誤信息
說明
fail no such file or directory, open ${filePath}指定的 filePath 文件不存在
fail illegal operation on a directory, open "${filePath}"指定的 filePath 是一個(gè)已經(jīng)存在的目錄
fail permission denied, open ${dirPath}指定的 filePath 路徑?jīng)]有寫權(quán)限
fail sdcard not mounted指定的 filePath 是一個(gè)已經(jīng)存在的目錄


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

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)