Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
import Foundation
struct FileProviderConfig {
- enum FileProviderConfigKey: String {
+ private enum ConfigKey: String {
case fastEnumerationEnabled = "fastEnumerationEnabled"
}
defaults.setValue(newValue, forKey: domainIdentifier.rawValue)
}
}
+
+ var fastEnumerationEnabled: Bool {
+ get { internalConfig[ConfigKey.fastEnumerationEnabled.rawValue] as? Bool ?? true }
+ set { internalConfig[ConfigKey.fastEnumerationEnabled.rawValue] = newValue }
+ }
}