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 1616#import " PFCurrentInstallationController.h"
1717#import " PFCurrentUserController.h"
1818#import " PFFileController.h"
19+ #import " PFFileManager.h"
1920#import " PFInstallationController.h"
2021#import " PFLocationManager.h"
2122#import " PFMacros.h"
@@ -135,6 +136,9 @@ - (PFFileController *)fileController {
135136 dispatch_sync (_controllerAccessQueue, ^{
136137 if (!_fileController) {
137138 _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];
138142 }
139143 controller = _fileController;
140144 });
You can’t perform that action at this time.
0 commit comments