1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-23 20:20:53 -05:00

Only import files from trees that exist in the repo

This commit is contained in:
Jack Foltz 2018-12-12 11:11:51 -05:00
parent 148c83f017
commit 1e212b8fa2
Signed by: foltik
GPG Key ID: D1F0331758D1F29A

View File

@ -26,7 +26,11 @@ def import_paths(paths, base):
if not isinstance(paths, list):
paths = [paths]
for path in paths:
copy(deploy_path(path), path)
if path.is_dir():
for subpath in path.iterdir():
copy(deploy_path(subpath), subpath)
else:
copy(deploy_path(path), path)
def export_paths(paths, base):
if not isinstance(paths, list):