SFFileProtectionHelper Class Reference

Inherits from NSObject
Declared in SFFileProtectionHelper.h

Overview

This helper class aims at providing a centralized place where NSFileProtection can be configured and retrieved.

  )

Contains the default NSFileProtection mode to use if no protection is specified. By default, this property is NSFileProtectionComplete

@property (nonatomic, strong) NSString *NS_SWIFT_NAME ( defaultMode )

Declared In

SFFileProtectionHelper.h

+ fileProtectionForPath:

Helper method that will return the file protection for the specified file path.

+ (NSString *)fileProtectionForPath:(NSString *)path

Parameters

path

The path for which to return the file protection

Return Value

The file protection

Declared In

SFFileProtectionHelper.h

– addProtection:forPath:

Add a valid file protection attribute to a path

- (void)addProtection:(NSString *)fileProtection forPath:(NSString *)path

Parameters

fileProtection

Type of file protection to apply to the path

path

The path for which to return the file protection

Declared In

SFFileProtectionHelper.h