Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
e58887df
"vscode:/vscode.git/clone" did not exist on "5bb38586a953c9978c618bca20236b4873638dce"
Commit
e58887df
authored
Feb 09, 2023
by
BazettFraga
Browse files
forgot windows does double backslashes for paths due to its use as escape char.
parent
81082045
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nodes.py
nodes.py
+2
-2
No files found.
nodes.py
View file @
e58887df
...
@@ -30,8 +30,8 @@ def recursive_search(directory):
...
@@ -30,8 +30,8 @@ def recursive_search(directory):
result
=
[]
result
=
[]
for
root
,
subdir
,
file
in
os
.
walk
(
directory
,
followlinks
=
True
):
for
root
,
subdir
,
file
in
os
.
walk
(
directory
,
followlinks
=
True
):
for
filepath
in
file
:
for
filepath
in
file
:
#we
remove the first character to remove the
path separator.
#we
os.path,join directory with a blank string to generate a
path separator
at the end
.
result
.
append
(
os
.
path
.
join
(
root
,
filepath
).
replace
(
directory
,
''
)
[
1
:]
)
result
.
append
(
os
.
path
.
join
(
root
,
filepath
).
replace
(
os
.
path
.
join
(
directory
,
''
)
,
''
)
)
return
result
return
result
def
filter_files_extensions
(
files
,
extensions
):
def
filter_files_extensions
(
files
,
extensions
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment