func dataDir() -> String {
let documentsDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
NSLog(" \(documentsDirectory.path)")
return documentsDirectory.path
}
func initAlist() {
Alistlib.AlistlibSetConfigDebug(true)
Alistlib.AlistlibSetConfigData(dataDir())
Alistlib.AlistlibSetConfigLogStd(true)
var error: NSError?
Alistlib.AlistlibInit(self, self, &error)
}
/var/mobile/Containers/Data/Application/1D5DCA30-D994-4765-B5F7-00A5AD87F3BB/Documents
2024/08/16 09:08:22 �[35m/Users/apple/WorkSpace/alist/alist-ios/internal/bootstrap/db.go:54
�[0m�[31m[error] �[0mfailed to initialize database, got error unable to open database file: no such file or directory
Failed to write to log, can't make directories for new logfile: mkdir /var/mobile/Containers/Data/Application/B4C225D9-2FD8-4D95-B25D-9D2FC9BEE35A: operation not permitted
2024/08/16 09:08:22 �[32m/Users/apple/WorkSpace/alist/alist-ios/internal/db/db.go:26
�[0m�[33m[0.001ms] �[34;1m[rows:0]�[0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="x_storages"