Skip to content

Commit f77937e

Browse files
committed
review
1 parent ca661a5 commit f77937e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

FirebaseDatabase/Sources/Persistence/FLevelDBStorageEngine.m

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -996,11 +996,9 @@ + (void)ensureDir:(NSString *)path markAsDoNotBackup:(BOOL)markAsDoNotBackup {
996996
}];
997997
}
998998

999-
#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION || TARGET_OS_OSX || \
1000-
TARGET_OS_MACCATALYST
1001999
// Now, ensure the file protection attribute is set. This will apply it
1002-
// whether the directory was just created or already existed. This attribute
1003-
// is ignored on systems that do not support it.
1000+
// whether the directory was just created or already existed. Note, this
1001+
// attribute has no effect on simulators.
10041002
NSDictionary *attributes = @{
10051003
NSFileProtectionKey :
10061004
NSFileProtectionCompleteUntilFirstUserAuthentication
@@ -1009,14 +1007,11 @@ + (void)ensureDir:(NSString *)path markAsDoNotBackup:(BOOL)markAsDoNotBackup {
10091007
ofItemAtPath:path
10101008
error:&error];
10111009
if (!success) {
1012-
// This is not a fatal error, as file protection may not be supported on
1013-
// all OS versions.
10141010
FFWarn(@"I-RDB076036",
10151011
@"Failed to set file protection attribute on persistence "
10161012
@"directory: %@",
10171013
error);
10181014
}
1019-
#endif
10201015

10211016
if (markAsDoNotBackup) {
10221017
NSURL *firebaseDirURL = [NSURL fileURLWithPath:path];

0 commit comments

Comments
 (0)