Skip to content

Commit 19c0970

Browse files
committed
cleanup
1 parent 5eecafa commit 19c0970

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/API.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ import { Mmfile } from 'react-native-mmfile';
1111
The `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

1616
openMmfile(path: string, readOnly?: boolean): Mmfile; // open a file
1717
openEncryptedMmfile(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

2726
There are two functions to open a file, `openMmfile()` and `openEncryptedMmfile()`.

0 commit comments

Comments
 (0)