Skip to content

Commit 7792ff2

Browse files
committed
Fix removal of ignored assignment files
1 parent ea2c002 commit 7792ff2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nbgrader/coursedir.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,10 @@ def find_assignments(self,
361361
# Locate all matching directories using a glob
362362
dirs = list(
363363
filter(
364-
lambda p: p.is_dir() and not is_ignored(p.relative_to(self.root), self.ignore),
364+
lambda p: (
365+
p.is_dir()
366+
and not is_ignored(str(p.relative_to(self.root)), self.ignore)
367+
),
365368
Path(self.root).glob(self.directory_structure.format(**kwargs))
366369
)
367370
)

0 commit comments

Comments
 (0)