FileSystemManager.appendFile

2020-02-14 14:13 更新

FileSystemManager.appendFile(Object object)

暫未支持

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


輸入

繼承標準對象輸入,擴展屬性描述:

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

encoding 字段值

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


輸出

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

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


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

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號