File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ extern NSString *const STORAGE_TEMPORARY;
15
15
+ (BOOL )deleteFileOrDirectory : (NSString *)relativePath inStorage : (NSString *)storage ;
16
16
17
17
// Extra method for integration from other modules / native code
18
- + (void )moveFileFromUrl : (NSURL *)location toRelativePath : (NSString *)relativePath inStorage : (NSString *)storage ;
18
+ + (NSString * )moveFileFromUrl : (NSURL *)location toRelativePath : (NSString *)relativePath inStorage : (NSString *)storage ;
19
19
20
20
@end
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ + (BOOL)addSkipBackupAttributeToItemAtPath:(NSString *) filePathString
97
97
}
98
98
99
99
// Extra method for integration from other modules / native code
100
- + (void )moveFileFromUrl : (NSURL *)location toRelativePath : (NSString *)relativePath inStorage : (NSString *)storage {
100
+ + (NSString * )moveFileFromUrl : (NSURL *)location toRelativePath : (NSString *)relativePath inStorage : (NSString *)storage {
101
101
NSFileManager *fileManager = [NSFileManager defaultManager ];
102
102
NSURL *baseDir = [RNFileSystem baseDirForStorage: storage];
103
103
NSURL *fullPath = [baseDir URLByAppendingPathComponent: relativePath];
@@ -106,6 +106,7 @@ + (void)moveFileFromUrl:(NSURL*)location toRelativePath:(NSString*)relativePath
106
106
if ([storage isEqual: STORAGE_IMPORTANT]) {
107
107
[RNFileSystem addSkipBackupAttributeToItemAtPath: [fullPath path ]];
108
108
}
109
+ return [fullPath path ];
109
110
}
110
111
111
112
RCT_EXPORT_MODULE ()
You can’t perform that action at this time.
0 commit comments