Capacitor iCloud Documents
npm install capacitor-icloud-documents
npx cap sync
echo(...)
readFile(...)
readFileB64(...)
removeFile(...)
writeFile(...)
mkdir(...)
stat(...)
fileExist(...)
readdir(...)
initUbiquitousContainer()
syncToCloud(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
readFile(options: { filePath: string; }) => Promise<{ fileStream: string; }>
Param | Type |
---|---|
options |
{ filePath: string; } |
Returns: Promise<{ fileStream: string; }>
readFileB64(options: { filePath: string; }) => Promise<{ fileStream: string; }>
Param | Type |
---|---|
options |
{ filePath: string; } |
Returns: Promise<{ fileStream: string; }>
removeFile(options: { filePath: string; }) => Promise<{ result: string; url: string; }>
Param | Type |
---|---|
options |
{ filePath: string; } |
Returns: Promise<{ result: string; url: string; }>
writeFile(options: { filePath: string; data: string; overwrite?: boolean; }) => Promise<{ result: string; url: string; }>
Param | Type |
---|---|
options |
{ filePath: string; data: string; overwrite?: boolean; } |
Returns: Promise<{ result: string; url: string; }>
mkdir(options: { path: string; }) => Promise<{ result: string; url: string; }>
Param | Type |
---|---|
options |
{ path: string; } |
Returns: Promise<{ result: string; url: string; }>
stat(options: { path: string; }) => Promise<{ type: 'Directory' | 'File'; size: number; modificationDate: string; creationDate: string; }>
Param | Type |
---|---|
options |
{ path: string; } |
Returns: Promise<{ type: 'Directory' | 'File'; size: number; modificationDate: string; creationDate: string; }>
fileExist(options: { path: string; }) => Promise<{ result: boolean; }>
Param | Type |
---|---|
options |
{ path: string; } |
Returns: Promise<{ result: boolean; }>
readdir(options: { path: string; }) => Promise<{ result: string[]; }>
Param | Type |
---|---|
options |
{ path: string; } |
Returns: Promise<{ result: string[]; }>
initUbiquitousContainer() => Promise<void>
syncToCloud(options: { filePath: string; destinationFolder: string; }) => Promise<{ url: string; }>
Param | Type |
---|---|
options |
{ filePath: string; destinationFolder: string; } |
Returns: Promise<{ url: string; }>