
WriteFile(…) writeFile (options : WriteFileOptions ) => Promise ReadFile(…) readFile (options : ReadFileOptions ) => Promise Simply leave out theĭirectory param to use a full file path. The Filesystem API offers a simple way to scope each operation to a specific special directory on the device.Īdditionally, the Filesystem API supports using fullĬontent:// files on Android.

IOS and Android have additional layers of separation between files, such as special directories that are backed up to the Cloud, or ones for storing Documents. Install npm install cap sync Androidĭirectory.ExternalStorage, this API requires the following permissions be added to yourĪndroid Guide for more information on setting Android permissions.ĭirectory.Documents and Directory.ExternalStorage are only available on Android 9 or older. Should the call fail (the default) or warn if a file cannot beĪ function, taking one parameter, the current path entry.Filesystem API provides a NodeJS-like API for working with files on the device. csv$) passed on to grep() to filter paths. *.csv) passed on to grep() to filter paths.Ī regular expression (e.g. "symlink", "FIFO", "socket", "character_device" or "block_device".Ī wildcard aka globbing pattern (e.g. If TRUE recurse fully, if a positive number the number of levelsįile type(s) to return, one or more of "any", "file", "directory", , recursive ) dir_map ( path = ".", fun, all = FALSE, recurse = FALSE, type = "any", fail = TRUE ) dir_walk ( path = ".", fun, all = FALSE, recurse = FALSE, type = "any", fail = TRUE ) dir_info ( path = ".", all = FALSE, recurse = FALSE, type = "any", regexp = NULL, glob = NULL, fail = TRUE.


