Skip to content

Commit 0c41230

Browse files
committed
update exclusion to check for path parents
1 parent f0fea4b commit 0c41230

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

rsconnect/bundle.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,13 @@ def keep_manifest_specified_file(relative_path):
433433
:param relative_path: the relative path name to check.
434434
:return: True, if the path should kept or False, if it should be ignored.
435435
"""
436-
return Path(relative_path) in directories_to_ignore
436+
p = Path(relative_path)
437+
for parent in p.parents:
438+
if parent in directories_to_ignore:
439+
return False
440+
if p in directories_to_ignore:
441+
return False
442+
return True
437443

438444

439445
def _default_title_from_manifest(the_manifest, manifest_file):

0 commit comments

Comments
 (0)