File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 16
16
#import " PFCurrentInstallationController.h"
17
17
#import " PFCurrentUserController.h"
18
18
#import " PFFileController.h"
19
+ #import " PFFileManager.h"
19
20
#import " PFInstallationController.h"
20
21
#import " PFLocationManager.h"
21
22
#import " PFMacros.h"
@@ -135,6 +136,9 @@ - (PFFileController *)fileController {
135
136
dispatch_sync (_controllerAccessQueue, ^{
136
137
if (!_fileController) {
137
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];
138
142
}
139
143
controller = _fileController;
140
144
});
You can’t perform that action at this time.
0 commit comments