You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature iOS only] API to check whether a file is excluded from backup, and set or unset it when necessary #55
We have a scenario to toggle isExcludedFromBackup on iOS to exclude or include a file from/to backup. We think this can be a part of react-native-fs, so we added a patch locally to include these two functions.
Make it OS independent — isExcludedFromBackup() / setIsExcludedFromBackup().
We need to check if similar feature exists on Android / Windows. If yes, we need to support it (perhaps later), otherwise we should return some static results from these functions on Android / Windows that make sense for default behavior there.
Perhaps, setIsExcludedFromBackup() should resolve to boolean flag, true if OS supports that, false if not (so that it is possible to call it on any OS without error, but there is a way to check whether it actually has effect or not).
Activity
birdofpreyru commentedon Jul 2, 2024
Good. A few thoughts out of my head:
isExcludedFromBackup()/setIsExcludedFromBackup().setIsExcludedFromBackup()should resolve to boolean flag,trueif OS supports that,falseif not (so that it is possible to call it on any OS without error, but there is a way to check whether it actually has effect or not).