File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ async def shellagent_export(request):
198
198
199
199
200
200
@server .PromptServer .instance .routes .post ("/shellagent/inspect_version" ) # data same as queue prompt, plus workflow_name
201
- async def shellagent_export (request ):
201
+ async def shellagent_inspect_version (request ):
202
202
data = await request .json ()
203
203
comfyui_version = inspect_repo_version (BASE_PATH )
204
204
comfyui_shellagent_plugin_version = inspect_repo_version (os .path .dirname (__file__ ))
@@ -210,9 +210,18 @@ async def shellagent_export(request):
210
210
211
211
212
212
@server .PromptServer .instance .routes .post ("/shellagent/get_mac_addr" ) # data same as queue prompt, plus workflow_name
213
- async def shellagent_export (request ):
213
+ async def shellagent_get_mac_addr (request ):
214
214
data = await request .json ()
215
215
return_dict = {
216
216
"mac_addr" : uuid .getnode ()
217
217
}
218
+ return web .json_response (return_dict , status = 200 )
219
+
220
+ @server .PromptServer .instance .routes .post ("/shellagent/check_exist" ) # check if the file or folder exist
221
+ async def shellagent_check_exist (request ):
222
+ data = await request .json ()
223
+
224
+ return_dict = {
225
+ "exist" : os .path .exists (data ["path" ])
226
+ }
218
227
return web .json_response (return_dict , status = 200 )
You can’t perform that action at this time.
0 commit comments