ディレクトリ
Realm ファイルを含むディレクトリへのパスを設定します。 ディレクトリが存在しない場合は、ディレクトリとすべての中間ディレクトリが作成されます。
設定されていない場合、Realm はプラットフォームのデフォルトのアプリ ストレージの場所に保存されます。
// For Android the default directory is obtained using
Context.getFilesDir()
// For JVM platforms the default directory is obtained using
System.getProperty("user.dir")
// For macOS the default directory is obtained using
platform.Foundation.NSFileManager.defaultManager.currentDirectoryPath
// For iOS the default directory is obtained using
NSFileManager.defaultManager.URLForDirectory(
NSDocumentDirectory,
NSUserDomainMask,
null,
true,
null
)
クリップボードにコピーされた内容
パラメーター
ディレクトリ パス
上記で定義されたストレージ ロケーションからの標準絶対パスまたは相対パス(「./」)のいずれか。