From 75712e00a3be9f74e53a9be809645a00a2e3c6d3 Mon Sep 17 00:00:00 2001 From: Lukas Oberhuber Date: Mon, 27 Dec 2021 11:26:38 +0000 Subject: [PATCH] binary: copy recursive preserves dir struct This change means that binary recursive copies preserve the directory structure rather than flattening it out. This is critical for using this capability in gimp where plugins have moved into sub directories. --- bundler/project.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundler/project.py b/bundler/project.py index 3da333e..d2ea0b5 100644 --- a/bundler/project.py +++ b/bundler/project.py @@ -117,7 +117,8 @@ def copy_target_glob_recursive(self, project, source, dest): continue utils.makedirs(destdir) for globbed_source in glob_list: - self.copy_file(project, globbed_source, destdir) + if os.path.isfile(globbed_source): + self.copy_file(project, globbed_source, destdir) def copy_target_recursive(self, project, source, dest): for root, dirs, files in os.walk(source):