Instrument to debug failure in file/alter-file

Also create a fn to handle uncertain global-config-dir paths.
Follow up to 24975cda01
This commit is contained in:
Gabriel Horner
2022-10-12 15:34:50 -04:00
parent da35064b32
commit 2386cbe254
3 changed files with 36 additions and 19 deletions

View File

@@ -342,7 +342,8 @@
new-local-files (-> (->db-files mobile-native? electron? dir-name local-files-result)
(remove-ignore-files dir-name nfs?))
new-global-files (if (and (config/global-config-enabled?)
(global-config-handler/global-config-dir))
;; Hack until we better understand failure in frontend.handler.file/alter-file
(global-config-handler/global-config-dir-exists?))
(p/let [global-files-result (fs/get-files
(global-config-handler/global-config-dir)
(constantly nil))