CapacitorAdapter
Defined in: obsidian.d.ts:583
Implementation of the vault adapter for mobile devices.
Extends
Implements
Constructors
new CapacitorAdapter()
new CapacitorAdapter():
CapacitorAdapter
Returns
Properties
basePath
basePath:
string
Defined in: src/obsidian/augmentations/DataAdapter.d.ts:13
Base OS path for the vault (e.g. /home/user/vault, or C:\Users\user\documents\vault)
Implementation of
Inherited from
files
files:
DataAdapterFilesRecord
Defined in: src/obsidian/augmentations/DataAdapter.d.ts:17
Mapping of file/folder path to vault entry, includes non-MD files
Implementation of
Inherited from
fs
Defined in: src/obsidian/augmentations/CapacitorAdapter.d.ts:8
Methods
_exists()
_exists(
normalizedPath
,sensitive
?):Promise
<boolean
>
Defined in: src/obsidian/augmentations/CapacitorAdapter.d.ts:10
Parameters
normalizedPath
string
sensitive?
boolean
Returns
Promise
<boolean
>
append()
append(
normalizedPath
,data
,options
?):Promise
<void
>
Defined in: obsidian.d.ts:625
Parameters
normalizedPath
string
data
string
options?
Returns
Promise
<void
>
Implementation of
Inherited from
copy()
copy(
normalizedPath
,normalizedNewPath
):Promise
<void
>
Defined in: obsidian.d.ts:647
Parameters
normalizedPath
string
normalizedNewPath
string
Returns
Promise
<void
>
Implementation of
Inherited from
exists()
exists(
normalizedPath
,sensitive
?):Promise
<boolean
>
Defined in: obsidian.d.ts:651
Parameters
normalizedPath
string
sensitive?
boolean
Returns
Promise
<boolean
>
Implementation of
Inherited from
getFullPath()
getFullPath(
normalizedPath
):string
Defined in: obsidian.d.ts:665
Parameters
normalizedPath
string
Returns
string
Implementation of
Inherited from
getFullRealPath()
getFullRealPath(
normalizedPath
):string
Defined in: src/obsidian/augmentations/DataAdapter.d.ts:40
Get full path of file (OS path)
Parameters
normalizedPath
string
Path to file
Returns
string
String full path to file
Implementation of
Inherited from
getName()
getName():
string
Defined in: obsidian.d.ts:588
Returns
string
Implementation of
Inherited from
getNativePath()
getNativePath(
normalizedPath
):string
Defined in: src/obsidian/augmentations/CapacitorAdapter.d.ts:11
Parameters
normalizedPath
string
Returns
string
getRealPath()
getRealPath(
normalizedPath
):string
Defined in: src/obsidian/augmentations/CapacitorAdapter.d.ts:12
Parameters
normalizedPath
string
Returns
string
getResourcePath()
getResourcePath(
normalizedPath
):string
Defined in: obsidian.d.ts:633
Parameters
normalizedPath
string
Returns
string
Implementation of
Inherited from
list()
list(
normalizedPath
):Promise
<ListedFiles
>
Defined in: obsidian.d.ts:660
Parameters
normalizedPath
string
Returns
Implementation of
Inherited from
mkdir()
mkdir(
normalizedPath
):Promise
<void
>
Defined in: obsidian.d.ts:593
Parameters
normalizedPath
string
Returns
Promise
<void
>
Implementation of
Inherited from
open()
open(
normalizedPath
):Promise
<void
>
Defined in: src/obsidian/augmentations/CapacitorAdapter.d.ts:14
Parameters
normalizedPath
string
Returns
Promise
<void
>
process()
process(
normalizedPath
,fn
,options
?):Promise
<string
>
Defined in: obsidian.d.ts:629
Parameters
normalizedPath
string
fn
(data
) => string
options?
Returns
Promise
<string
>
Implementation of
Inherited from
queue()
queue(
next
):Promise
<void
>
Defined in: src/obsidian/internals/PromisedQueue.d.ts:5
Parameters
next
() => void
| Promise
<void
>
Returns
Promise
<void
>
Implementation of
Inherited from
quickList()
quickList(
normalizedFolderPath
,fileEntry
):void
Defined in: src/obsidian/augmentations/CapacitorAdapter.d.ts:15
Parameters
normalizedFolderPath
string
fileEntry
Returns
void
read()
read(
normalizedPath
):Promise
<string
>
Defined in: obsidian.d.ts:609
Parameters
normalizedPath
string
Returns
Promise
<string
>
Implementation of
Inherited from
readBinary()
readBinary(
normalizedPath
):Promise
<ArrayBuffer
>
Defined in: obsidian.d.ts:613
Parameters
normalizedPath
string
Returns
Implementation of
Inherited from
reconcileFileChanged()
reconcileFileChanged(
realFilePath
,normalizedPath
,fileEntry
):void
Defined in: src/obsidian/augmentations/CapacitorAdapter.d.ts:16
Parameters
realFilePath
string
normalizedPath
string
fileEntry
Returns
void
remove()
remove(
normalizedPath
):Promise
<void
>
Defined in: obsidian.d.ts:638
Parameters
normalizedPath
string
Returns
Promise
<void
>
Implementation of
Inherited from
rename()
rename(
normalizedPath
,normalizedNewPath
):Promise
<void
>
Defined in: obsidian.d.ts:643
Parameters
normalizedPath
string
normalizedNewPath
string
Returns
Promise
<void
>
Implementation of
Inherited from
rmdir()
rmdir(
normalizedPath
,recursive
):Promise
<void
>
Defined in: obsidian.d.ts:605
Parameters
normalizedPath
string
recursive
boolean
Returns
Promise
<void
>
Implementation of
Inherited from
stat()
Defined in: obsidian.d.ts:656
Parameters
normalizedPath
string
Returns
Implementation of
Inherited from
trashLocal()
trashLocal(
normalizedPath
):Promise
<void
>
Defined in: obsidian.d.ts:601
Parameters
normalizedPath
string
Returns
Promise
<void
>
Implementation of
Inherited from
trashSystem()
trashSystem(
normalizedPath
):Promise
<boolean
>
Defined in: obsidian.d.ts:597
Parameters
normalizedPath
string
Returns
Promise
<boolean
>
Implementation of
Inherited from
watchAndList()
watchAndList():
Promise
<void
>
Defined in: src/obsidian/augmentations/CapacitorAdapter.d.ts:21
Returns
Promise
<void
>
write()
write(
normalizedPath
,data
,options
?):Promise
<void
>
Defined in: obsidian.d.ts:617
Parameters
normalizedPath
string
data
string
options?
Returns
Promise
<void
>
Implementation of
Inherited from
writeBinary()
writeBinary(
normalizedPath
,data
,options
?):Promise
<void
>
Defined in: obsidian.d.ts:621
Parameters
normalizedPath
string
data
options?
Returns
Promise
<void
>