ish/app/FileProvider/FileProviderItem.h
2022-02-21 19:22:09 -08:00

27 lines
650 B
Objective-C

//
// FileProviderItem.h
// iSHFiles
//
// Created by Theodore Dubois on 9/20/18.
//
#import <FileProvider/FileProvider.h>
#include "fs/fake-db.h"
NS_ASSUME_NONNULL_BEGIN
@interface FileProviderItem : NSObject <NSFileProviderItem>
- (instancetype)initWithIdentifier:(NSFileProviderItemIdentifier)identifier mount:(struct fakefs_mount *)mount error:(NSError *_Nullable *)err;
- (void)loadToURL:(NSURL *)url;
- (void)saveFromURL:(NSURL *)url;
- (int)openNewFDWithError:(NSError *_Nullable *)err;
@property (readonly) NSURL *URL;
@property (readonly) NSString *path;
@property (readonly) struct fakefs_mount *mount;
@end
NS_ASSUME_NONNULL_END