This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

24 lines
876 B
C
Raw Permalink Normal View History

2021-04-02 02:24:13 +03:00
// Copyright 2016-present 650 Industries. All rights reserved.
#import <Foundation/Foundation.h>
typedef NS_OPTIONS(unsigned int, UMFileSystemPermissionFlags) {
UMFileSystemPermissionNone = 0,
UMFileSystemPermissionRead = 1 << 1,
UMFileSystemPermissionWrite = 1 << 2,
};
// TODO: Maybe get rid of this interface in favor of EXFileSystemManager and private utilities classes
@protocol UMFileSystemInterface
@property (nonatomic, readonly) NSString *documentDirectory;
@property (nonatomic, readonly) NSString *cachesDirectory;
@property (nonatomic, readonly) NSString *bundleDirectory;
// TODO: Move permissionsForURI to UMFileSystemManagerInterface
- (UMFileSystemPermissionFlags)permissionsForURI:(NSURL *)uri;
- (NSString *)generatePathInDirectory:(NSString *)directory withExtension:(NSString *)extension;
- (BOOL)ensureDirExistsWithPath:(NSString *)path;
@end