File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
backends/apple/coreml/runtime/delegate Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ bool set_total_assets_size(size_t total_size,
207207 return dirURL;
208208}
209209
210- bool is_empty_directory_or_not_exist (NSURL *dirURL, NSFileManager *fm, NSError * __autoreleasing *error) {
210+ bool is_missing_or_empty_directory (NSURL *dirURL, NSFileManager *fm, NSError * __autoreleasing *error) {
211211 NSString *dirPath = dirURL.path ;
212212 BOOL isDir = NO ;
213213 BOOL doesFileExist = dirPath && [fm fileExistsAtPath: dirPath isDirectory: &isDir];
@@ -350,7 +350,7 @@ - (nullable instancetype)initWithDatabase:(const std::shared_ptr<Database>&)data
350350 (void )[fileManager setAttributes: attrs ofItemAtPath: managedStagingDirectoryURL.path error: nil ]; // best-effort
351351
352352 // If directory is empty then purge the stores
353- if (::is_empty_directory_or_not_exist (managedAssetsDirectoryURL, fileManager, nil )) {
353+ if (::is_missing_or_empty_directory (managedAssetsDirectoryURL, fileManager, nil )) {
354354 assetsMetaStore.impl ()->purge (ec);
355355 assetsStore.impl ()->purge (ec);
356356 }
You can’t perform that action at this time.
0 commit comments