We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e4181a + 414d379 commit e0f2f34Copy full SHA for e0f2f34
jupyterlab-snippets/loader.py
@@ -16,9 +16,9 @@ def collect_snippets(self):
16
for root_path in self.snippet_paths:
17
for dirpath, dirnames, filenames in os.walk(root_path, followlinks=True):
18
# Remove hidden folder
19
- for folder_i, folder in enumerate(dirnames):
20
- if folder.startswith("."):
21
- dirnames.pop(folder_i)
+ to_remove = [folder for folder in dirnames if folder.startswith(".")]
+ for folder in to_remove:
+ dirnames.remove(folder)
22
23
for f in filenames:
24
fullpath = PurePath(dirpath).relative_to(root_path).joinpath(f)
0 commit comments