as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

KeplerFileSystem

Interface for the Kepler FileSystem TurboModule.

This is the interface contains basic methods to manipulate the contents of the local filesystem. It makes querying into the file system, traversing it, reading and writing to files possible.

Extends

  • KeplerTurboModule

Properties

openFile

openFile: (path: string, mode: FileSystemTypes.OpenMode) => Promise<void>

Opens a file with the specified mode.


removeFile

removeFile: (path: string) => Promise<void>

Deletes a file at the path.


removeDir

removeDir: (path: string) => Promise<void>

Deletes a directory at the path.


removeDirAll

removeDirAll: (path: string) => Promise<void>

Deletes a directory at the path and all its content.


readFileAsString

readFileAsString: (path: string, encoding: string) => Promise<string>

Reads the entire content of a text file into a string.


writeStringToFile

writeStringToFile: (path: string, content: string, encoding: string) => Promise<number>

Writes a string to a text file.


getMetadata

getMetadata: (path: string, noFollow: boolean) => Promise<FileSystemTypes.Metadata>

Gets metadata about the file or symbolic link referred to by path.


getEntries

getEntries: (path: string) => Promise<string[]>

Gets directory entries for the given path.


exists

exists: (path: string) => Promise<boolean>

Checks if a file or directory exists at the given path.


Last updated: Jul 22, 2026