This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-16
Channels
- # announcements (5)
- # asami (4)
- # babashka (72)
- # beginners (241)
- # calva (15)
- # cider (2)
- # circleci (5)
- # clara (41)
- # clj-kondo (38)
- # cljsrn (4)
- # clojars (33)
- # clojure (283)
- # clojure-europe (41)
- # clojure-nl (9)
- # clojure-uk (11)
- # clojuredesign-podcast (14)
- # clojurescript (76)
- # conjure (12)
- # cryogen (42)
- # data-science (1)
- # datalog (6)
- # datomic (7)
- # depstar (10)
- # events (2)
- # figwheel-main (1)
- # fulcro (22)
- # funcool (1)
- # london-clojurians (1)
- # malli (8)
- # meander (11)
- # off-topic (12)
- # pathom (19)
- # re-frame (8)
- # reveal (34)
- # shadow-cljs (34)
- # sql (7)
- # vim (8)
- # xtdb (6)
Anyone care to chime in on where I should be saving files which will be uploaded some time in the future. (e.g. photo taken and later uploaded). Temp dir is a risk of losing data before uploaded.
👍 3
Seems like this might be the solution:
(defn internal-file-path
"Path to store internal app files which will persist and be backed up"
[]
(case react-native/Platform.OS
"ios" react-native-fs/LibraryDirectoryPath
"android" react-native-fs/DocumentDirectoryPath))
👍 3
For android https://developer.android.com/training/data-storage/app-specific#internal-access-files
For ios (Library, not Documents since they're not for general access by user). Possibly in the Library/Application Support/myapp dir
(https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW1)