1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

target: Fix undefined function

Remove references to non-existent dst_path_exists() function in
target.py
This commit is contained in:
Douglas Raillard 2021-10-11 14:09:49 +01:00 committed by Marc Bonnici
parent e979bafb50
commit 0e0417c6b3

View File

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