Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
Ring
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート

KeplerFileSystem

KeplerFileSystem

KeplerFileSystemターボモジュールのインターフェイス。

このインターフェイスには、ローカルファイルシステムのコンテンツを操作するための基本的なメソッドが含まれています。これにより、ファイルシステムへのクエリ、ファイルトラバース、ファイルの読み取りと書き込みが可能になります。

拡張

  • KeplerTurboModule

プロパティ

openFile

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

指定されたモードでファイルを開きます。


removeFile

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

パスにあるファイルを削除します。


removeDir

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

パスにあるディレクトリを削除します。


removeDirAll

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

パスにあるディレクトリとそのコンテンツをすべて削除します。


readFileAsString

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

テキストファイルの内容全体を文字列に読み込みます。


writeStringToFile

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

テキストファイルに文字列を書き込みます。


getMetadata

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

パスで参照されるファイルまたはシンボリックリンクに関するメタデータを取得します。


getEntries

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

指定されたパスのディレクトリエントリを取得します。


exists

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

指定されたパスにファイルまたはディレクトリが存在するかどうかを確認します。


Last updated: 2026年7月22日