forked from strongbox-password-safe/Strongbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
StrongboxiOSFilesManager.h
49 lines (35 loc) · 1.47 KB
/
StrongboxiOSFilesManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// FileManager.h
// Strongbox
//
// Created by Mark on 17/06/2019.
// Copyright © 2014-2021 Mark McGuill. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "StorageBrowserItem.h"
NS_ASSUME_NONNULL_BEGIN
@interface StrongboxFilesManager : NSObject
+ (instancetype)sharedInstance;
@property (readonly, nonnull) NSURL* documentsDirectory;
@property (readonly, nullable) NSURL* sharedAppGroupDirectory;
@property (readonly, nullable) NSURL* keyFilesDirectory;
@property (readonly, nullable) NSURL* backupFilesDirectory;
@property (readonly, nullable) NSURL* preferencesDirectory;
@property (readonly, nonnull) NSString* tmpEncryptionStreamPath;
@property (readonly, nullable) NSURL* crashFile;
@property (readonly, nullable) NSURL* archivedCrashFile;
@property (readonly, nullable) NSURL* appSupportDirectory;
@property (readonly, nullable) NSURL* syncManagerLocalWorkingCachesDirectory;
@property (readonly, nullable) NSURL* syncManagerMergeWorkingDirectory;
@property (readonly, nonnull) NSString* tmpAttachmentPreviewPath;
- (void)createIfNecessary:(NSURL*)url;
- (void)setDirectoryInclusionFromBackup:(BOOL)localDocuments importedKeyFiles:(BOOL)importedKeyFiles;
- (void)deleteAllLocalAndAppGroupFiles;
- (void)deleteAllInboxItems;
- (void)deleteAllTmpAttachmentFiles;
- (void)deleteAllTmpWorkingFiles;
- (void)deleteAllTmpDirectoryFiles;
- (void)setFileProtection:(BOOL)complete;
@property (readonly) NSArray<NSURL*>* importedKeyFiles;
@end
NS_ASSUME_NONNULL_END