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
This commit is contained in:
someda 2014-05-02 01:36:42 +09:00
parent d64c0ae4f1
commit 5bb888af4b

View file

@ -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)