0.1.7 • Published 4 years ago

capacitor-external-files v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

capacitor-external-files

Plugin to work with external files like on an external sd-card connected over USB-OTG.

Install

npm install capacitor-external-files
npx cap sync

API

dirChooser()

dirChooser() => any

Returns: any


readDir(...)

readDir(options: { root: string; path: string; }) => any
ParamType
options{ root: string; path: string; }

Returns: any


getFileEntry(...)

getFileEntry(options: { root: string; path: string; }) => any
ParamType
options{ root: string; path: string; }

Returns: any


readFile(...)

readFile(options: { root: string; path: string; encoding?: Encoding; }) => any
ParamType
options{ root: string; path: string; encoding?: Encoding; }

Returns: any


delete(...)

delete(options: { root: string; path: string; }) => any
ParamType
options{ root: string; path: string; }

Returns: any


createDir(...)

createDir(options: { root: string; path: string; }) => any
ParamType
options{ root: string; path: string; }

Returns: any


writeFile(...)

writeFile(options: { root: string; path: string; data: string; encoding?: Encoding; }) => any
ParamType
options{ root: string; path: string; data: string; encoding?: Encoding; }

Returns: any


copyAssetDir(...)

copyAssetDir(options: { assetPath: string; root: string; path: string; }) => any
ParamType
options{ assetPath: string; root: string; path: string; }

Returns: any


Interfaces

ExtFileEntry

PropType
pathstring
namestring
kind"file" | "directory"
modificationDatenumber

Enums

Encoding

MembersValue
UTF8'utf8'
ASCII'ascii'
UTF16'utf16'
ISO_8859_1'iso8859-1'
0.1.7

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago