mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
641 B
Objective-C
29 lines
641 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface OWSFileSystem : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
+ (void)protectFolderAtPath:(NSString *)path;
|
|
|
|
+ (NSString *)appDocumentDirectoryPath;
|
|
|
|
+ (NSString *)appSharedDataDirectoryPath;
|
|
|
|
+ (NSString *)cachesDirectoryPath;
|
|
|
|
+ (void)moveAppFilePath:(NSString *)oldFilePath
|
|
sharedDataFilePath:(NSString *)newFilePath
|
|
exceptionName:(NSString *)exceptionName;
|
|
|
|
// Returns NO IFF the directory does not exist and could not be created.
|
|
+ (BOOL)ensureDirectoryExists:(NSString *)dirPath;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|