Fixes #153 - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSString stringWithUTF8String:]: NULL cString' #153
This commit is contained in:
parent
0390522194
commit
d6216760e4
@ -1401,6 +1401,9 @@ void download_tree(AMDeviceRef device)
|
||||
afc_connection* afc_conn_p = NULL;
|
||||
char *dirname = NULL;
|
||||
|
||||
list_root = list_root? list_root : "/";
|
||||
target_filename = target_filename? target_filename : ".";
|
||||
|
||||
NSString* targetPath = [NSString pathWithComponents:@[ @(target_filename), @(list_root)] ];
|
||||
mkdirp([targetPath stringByDeletingLastPathComponent]);
|
||||
|
||||
@ -1419,7 +1422,7 @@ void download_tree(AMDeviceRef device)
|
||||
}
|
||||
}
|
||||
|
||||
read_dir(houseFd, afc_conn_p, list_root?list_root:"/", copy_file_callback);
|
||||
read_dir(houseFd, afc_conn_p, list_root, copy_file_callback);
|
||||
|
||||
} while(0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user