File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ extern NSString *const STORAGE_TEMPORARY;
13
13
+ (BOOL )fileExists : (NSString *)relativePath inStorage : (NSString *)storage ;
14
14
+ (BOOL )directoryExists : (NSString *)relativePath inStorage : (NSString *)storage ;
15
15
+ (BOOL )deleteFileOrDirectory : (NSString *)relativePath inStorage : (NSString *)storage ;
16
+ + (NSString *)absolutePath : (NSString *)relativePath inStorage : (NSString *)storage ;
16
17
17
18
// Extra method for integration from other modules / native code
18
19
+ (NSString *)moveFileFromUrl : (NSURL *)location toRelativePath : (NSString *)relativePath inStorage : (NSString *)storage ;
Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ + (BOOL)addSkipBackupAttributeToItemAtPath:(NSString *) filePathString
96
96
return success;
97
97
}
98
98
99
+ + (NSString *)absolutePath : (NSString *)relativePath inStorage : (NSString *)storage {
100
+ NSURL *baseDir = [RNFileSystem baseDirForStorage: storage];
101
+ return [[baseDir URLByAppendingPathComponent: relativePath] path ];
102
+ }
103
+
99
104
// Extra method for integration from other modules / native code
100
105
+ (NSString *)moveFileFromUrl : (NSURL *)location toRelativePath : (NSString *)relativePath inStorage : (NSString *)storage {
101
106
NSFileManager *fileManager = [NSFileManager defaultManager ];
You can’t perform that action at this time.
0 commit comments