|
@@ -64,6 +64,8 @@ class FileProvider: NSFileProviderExtension, CCNetworkingDelegate {
|
|
|
|
|
|
timerUpload = Timer.init(timeInterval: TimeInterval(k_timerProcessAutoDownloadUpload), repeats: true, block: { (Timer) in
|
|
|
|
|
|
+ // record in lock ??
|
|
|
+ /*
|
|
|
let tasks = CCNetworking.shared().getUploadTasksExtensionSession()
|
|
|
if tasks!.count == 0 {
|
|
|
let records = NCManageDatabase.sharedInstance.getQueueUpload(predicate: NSPredicate(format: "account = %@ AND selector = %@ AND lock == true AND path != nil", account, selectorUploadFile))
|
|
@@ -71,7 +73,9 @@ class FileProvider: NSFileProviderExtension, CCNetworkingDelegate {
|
|
|
NCManageDatabase.sharedInstance.unlockAllQueueUploadInPath()
|
|
|
}
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
+ //
|
|
|
self.uploadFile()
|
|
|
})
|
|
|
|