From 0e0417c6b32c63501ef3063eb128a34535b359b4 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Mon, 11 Oct 2021 14:09:49 +0100 Subject: [PATCH] target: Fix undefined function Remove references to non-existent dst_path_exists() function in target.py --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index b78ca6d..80e4f4e 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -574,7 +574,7 @@ class Target(object): if not sources: raise src_excep('No file matching source pattern: {}'.format(pattern)) - if dst_path_exists(dest) and not dst_is_dir(dest): + if dst_paths_kind([dest]) != ['dir']: raise NotADirectoryError('A folder dest is required for multiple matches but destination is a file: {}'.format(dest)) # TODO: since rewrite_dst() will currently return a different path for