yeet
This commit is contained in:
9
node_modules/unimodules-file-system-interface/ios/UMFileSystemInterface/UMFilePermissionModuleInterface.h
generated
vendored
Normal file
9
node_modules/unimodules-file-system-interface/ios/UMFileSystemInterface/UMFilePermissionModuleInterface.h
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright 2018-present 650 Industries. All rights reserved.
|
||||
#import <UMFileSystemInterface/UMFileSystemInterface.h>
|
||||
|
||||
@protocol UMFilePermissionModuleInterface
|
||||
|
||||
- (UMFileSystemPermissionFlags)getPathPermissions:(NSString *)path;
|
||||
|
||||
@end
|
||||
|
23
node_modules/unimodules-file-system-interface/ios/UMFileSystemInterface/UMFileSystemInterface.h
generated
vendored
Normal file
23
node_modules/unimodules-file-system-interface/ios/UMFileSystemInterface/UMFileSystemInterface.h
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
// 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
|
Reference in New Issue
Block a user