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

Start from base library version 2.1.0. Please remaining backward compatible.

The synchronous version of FileSystemManager.appendFile.

# Parameters

# string filePath

Path to the file to which you want to append content

# string|ArrayBuffer data

Text or binary data to be appended

# string encoding

Specifies the character encoding of the written file

Valid values of encoding

Value Description Minimum Version
ucs2 Read in little endian
ucs-2 Read in little endian
utf16le Read in little endian
utf-16le Read in little endian

# Errors

Error Code Error Message Description
fail no such file or directory, open ${filePath} File with the specified filePath does not exist
fail illegal operation on a directory, open "${filePath}" The specified filePath is an existing directory
fail permission denied, open ${dirPath} No write permission on the specified filePath
fail sdcard not mounted The specified filePath is an existing directory