From 5bb888af4b2285e3abe1e50ff50a2b95db3bf15e Mon Sep 17 00:00:00 2001 From: someda Date: Fri, 2 May 2014 01:36:42 +0900 Subject: [PATCH] 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 --- files/copy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/copy b/files/copy index 08aa1d71a40..862a1ac77b4 100644 --- a/files/copy +++ b/files/copy @@ -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)