File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,16 @@ import { Mmfile } from 'react-native-mmfile';
11
11
The ` Mmfile ` object is a singleton with the following properties and methods:
12
12
13
13
``` ts
14
- baseDirectory : string ; // base directory for relative paths
14
+ baseDirectory : string ; // base directory for relative paths
15
15
16
16
openMmfile (path : string , readOnly ?: boolean ): Mmfile ; // open a file
17
17
openEncryptedMmfile (path : string , key : ArrayBuffer , readOnly ?: boolean ): EncryptedMmfile ; // open an encrypted file
18
18
19
- fileExists (path : string ): boolean ; // check if a file exists
20
- getFileSize (path : string ): number ; // get the file size
21
- getEncryptedFileSize (path : string ): number ; // get the content size of an encrypted file
22
-
23
- readDir (path : string ): Promise < ReadDirItem []> ; // read a directory
24
- unlink (path : string ): Promise < void > ; // delete a file or directory (recursively)
19
+ fileExists (path : string ): boolean ; // check if a file exists
20
+ getFileSize (path : string ): number ; // get the file size
21
+ getEncryptedFileSize (path : string ): number ; // get the content size of an encrypted file
22
+ readDir (path : string ): Promise < ReadDirItem []> ; // read a directory
23
+ unlink (path : string ): Promise < void > ; // delete a file or directory (recursively)
25
24
```
26
25
27
26
There are two functions to open a file, ` openMmfile() ` and ` openEncryptedMmfile() ` .
You can’t perform that action at this time.
0 commit comments