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';
1111The ` Mmfile ` object is a singleton with the following properties and methods:
1212
1313``` ts
14- baseDirectory : string ; // base directory for relative paths
14+ baseDirectory : string ; // base directory for relative paths
1515
1616openMmfile (path : string , readOnly ?: boolean ): Mmfile ; // open a file
1717openEncryptedMmfile (path : string , key : ArrayBuffer , readOnly ?: boolean ): EncryptedMmfile ; // open an encrypted file
1818
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)
2524```
2625
2726There are two functions to open a file, ` openMmfile() ` and ` openEncryptedMmfile() ` .
You can’t perform that action at this time.
0 commit comments