File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Parse/Internal/File/Controller Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ + (instancetype)controllerWithDataSource:(id<PFFileManagerProvider>)dataSource {
5151// /--------------------------------------
5252
5353- (NSString *)stagedFilesDirectoryPath {
54- NSString *folderPath = [self .dataSource.fileManager parseLocalSandboxDataDirectoryPath ];
55- return [folderPath stringByAppendingPathComponent: PFFileStagingControllerDirectoryName_];
54+ return [self .dataSource.fileManager parseCacheItemPathForPathComponent: PFFileStagingControllerDirectoryName_];
5655}
5756
5857// /--------------------------------------
@@ -89,7 +88,7 @@ - (NSString *)stagedFilePathForFileWithName:(NSString *)name uniqueId:(uint64_t)
8988- (BFTask *)_clearStagedFilesAsync {
9089 return [_taskQueue enqueue: ^id (BFTask *task) {
9190 NSString *stagedFilesDirectoryPath = [self stagedFilesDirectoryPath ];
92- return [PFFileManager removeItemAtPathAsync: stagedFilesDirectoryPath];
91+ return [PFFileManager removeItemAtPathAsync: stagedFilesDirectoryPath withFileLock: NO ];
9392 }];
9493}
9594
You can’t perform that action at this time.
0 commit comments