Skip to content

Commit 3a2fd6b

Browse files
committed
up
1 parent 428c1c4 commit 3a2fd6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backends/apple/coreml/runtime/delegate/ETCoreMLAssetManager.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,10 @@ bool set_total_assets_size(size_t total_size,
187187
}
188188

189189
// Try to create the directory and its parents.
190+
NSDictionary *attrs = @{ NSFileProtectionKey : NSFileProtectionCompleteUntilFirstUserAuthentication };
190191
if (![fm createDirectoryAtURL:dirURL
191192
withIntermediateDirectories:YES
192-
attributes:nil
193+
attributes:attrs
193194
error:error]) {
194195
// Lost a race and creation failed because something already exists, check if it's a directory.
195196
isDir = NO;

0 commit comments

Comments
 (0)