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.
1 parent 5e4181a commit 8d6ffabCopy full SHA for 8d6ffab
jupyterlab-snippets/loader.py
@@ -15,10 +15,10 @@ def collect_snippets(self):
15
snippets = []
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)
+ # Remove hidden folder
+ 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