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
9261587d
Commit
9261587d
authored
Sep 07, 2023
by
comfyanonymous
Browse files
Small refactor.
parent
d6d1a899
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server.py
server.py
+2
-2
No files found.
server.py
View file @
9261587d
...
...
@@ -170,9 +170,9 @@ class PromptServer():
subfolder
=
post
.
get
(
"subfolder"
,
""
)
full_output_folder
=
os
.
path
.
join
(
upload_dir
,
os
.
path
.
normpath
(
subfolder
))
filepath
=
os
.
path
.
join
(
full_output_folder
,
filename
)
filepath
=
os
.
path
.
abspath
(
os
.
path
.
join
(
full_output_folder
,
filename
)
)
if
os
.
path
.
commonpath
((
upload_dir
,
os
.
path
.
abspath
(
filepath
))
)
!=
upload_dir
:
if
os
.
path
.
commonpath
((
upload_dir
,
filepath
))
!=
upload_dir
:
return
web
.
Response
(
status
=
400
)
if
not
os
.
path
.
exists
(
full_output_folder
):
...
...
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