fix #7244 recursive copy fails when setting directory attributes

- reverse the order of new_directory_list returned from split_pre_existing_dir in copy module
reviewable/pr18780/r1
someda 11 years ago
parent d64c0ae4f1
commit 5bb888af4b

@ -111,7 +111,7 @@ def split_pre_existing_dir(dirname):
(pre_existing_dir, new_directory_list) = split_pre_existing_dir(head)
else:
return (head, [ tail ])
new_directory_list.insert(0, tail)
new_directory_list.append(tail)
return (pre_existing_dir, new_directory_list)

Loading…
Cancel
Save