update_walk: use directory_make_child()
This commit is contained in:
parent
535a61b5a9
commit
3edd4a24af
@ -344,11 +344,8 @@ update_archive_tree(struct directory *directory, char *name)
|
|||||||
if (tmp) {
|
if (tmp) {
|
||||||
*tmp = 0;
|
*tmp = 0;
|
||||||
//add dir is not there already
|
//add dir is not there already
|
||||||
if ((subdir = directory_get_child(directory, name)) == NULL) {
|
subdir = directory_make_child(directory, name);
|
||||||
//create new directory
|
|
||||||
subdir = directory_new_child(directory, name);
|
|
||||||
subdir->device = DEVICE_INARCHIVE;
|
subdir->device = DEVICE_INARCHIVE;
|
||||||
}
|
|
||||||
//create directories first
|
//create directories first
|
||||||
update_archive_tree(subdir, tmp+1);
|
update_archive_tree(subdir, tmp+1);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user