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:
parent
e979bafb50
commit
0e0417c6b3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user