We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a8ae03 commit 1ba3d65Copy full SHA for 1ba3d65
Parse/Internal/PFCoreManager.m
@@ -16,6 +16,7 @@
16
#import "PFCurrentInstallationController.h"
17
#import "PFCurrentUserController.h"
18
#import "PFFileController.h"
19
+#import "PFFileManager.h"
20
#import "PFInstallationController.h"
21
#import "PFLocationManager.h"
22
#import "PFMacros.h"
@@ -135,6 +136,9 @@ - (PFFileController *)fileController {
135
136
dispatch_sync(_controllerAccessQueue, ^{
137
if (!_fileController) {
138
_fileController = [PFFileController controllerWithDataSource:self.dataSource];
139
+ // This is OK to do asynchronously here, as you can wait on the task being completed via
140
+ // PFMultiProcessFileLockController.
141
+ [PFFileManager removeDirectoryContentsAsyncAtPath:_fileController.stagedFilesDirectoryPath];
142
}
143
controller = _fileController;
144
});
0 commit comments