mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
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
|