File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Native filesystem access for react-native
4
4
5
5
Note: this project is under development and functionality will improve over time. Currently it provides only the bare minimum of functionality.
6
6
7
- Renaming, copying, and creating files will follow soon.
7
+ Creating, renaming, copying, etc. of files will follow soon.
8
8
9
9
## Usage
10
10
@@ -55,6 +55,17 @@ RNFS.readDir('/', RNFS.MainBundle)
55
55
56
56
## API
57
57
58
+ ### Constants
59
+
60
+ The following constants are available on the ` RNFS ` export:
61
+
62
+ ` MainBundle ` (` Number ` ) The identifier for the main bundle
63
+ ` CachesDirectory ` (` Number ` ) The identifier for the caches directory
64
+ ` DocumentDirectory ` (` Number ` ) The identifier for the document directory
65
+
66
+ ` CachesDirectoryPath ` (` String ` ) The absolute path to the caches directory
67
+ ` DocumentDirectoryPath ` (` String ` ) The absolute path to the document directory
68
+
58
69
### ` promise readDir(path, directory) `
59
70
60
71
Reads the contents of ` path ` in ` directory ` .
You can’t perform that action at this time.
0 commit comments