@@ -47,6 +47,14 @@ Asynchronously checks if the directory exists, and resolves the promise with a `
47
47
48
48
If no storage is specified, FileSystem.storage.backedUp is the default.
49
49
50
+ ---
51
+ static ** absolutePath** (path: ` string ` , storage: ` string? ` ): ` string `
52
+
53
+ Returns the absolute path given a relative path and a storage class. Useful if you need to interact
54
+ with native code that is unaware of the storage class system of this module.
55
+
56
+ If no storage is specified, FileSystem.storage.backedUp is the default.
57
+
50
58
## FileSystem.storage
51
59
52
60
There are four different storage classes available.
@@ -68,8 +76,8 @@ For files that are possible to re-generate / re-download, but are still importan
68
76
around during low storage situations. F.ex. offline maps. The system will almost always keep these
69
77
files around.
70
78
71
- Corresponds to ` <Application_Home>/Library/Caches ` with "do not backup" flag on iOS, and a
72
- subdirectory of
79
+ Corresponds to a subdirectory of ` <Application_Home>/Library/Caches ` with "do not backup" flags on
80
+ iOS, and a subdirectory of
73
81
[ Context.getFilesDir()] ( https://developer.android.com/reference/android/content/Context.html#getFilesDir() )
74
82
excluded from backup on Android.
75
83
@@ -81,7 +89,7 @@ This is for files that can be re-created, and that the app can live without. On
81
89
delete these files in low storage situations. To play it safe, you should gracefully handle the
82
90
case where they are gone, by checking for their existence.
83
91
84
- Corresponds to ` <Application_Home>/Library/Caches ` on iOS, and a separate subdirectory of
92
+ Corresponds to a subdirectory of ` <Application_Home>/Library/Caches ` on iOS, and a subdirectory of
85
93
[ Context.getFilesDir()] ( https://developer.android.com/reference/android/content/Context.html#getFilesDir() )
86
94
excluded from backup on Android.
87
95
0 commit comments