FileSystemManager.appendFileSync

2020-02-14 14:13 更新

FileSystemManager.appendFileSync(string filePath, string|ArrayBuffer data, string encoding)

暫未支持

FileSystemManager.appendFile 的同步版本


輸入

filePath string

要追加內(nèi)容的文件路徑

data string|ArrayBuffer

要追加的文本或二進(jìn)制數(shù)據(jù)

encoding string

指定寫入文件的字符編碼

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


錯(cuò)誤

errMsg說明
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)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

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

編程獅公眾號(hào)