Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Add a helpful warning for links that don't point anywhere.

comfyanonymousabc69cab4560
diff --git a/comfy_extras/nodes_canny.py b/comfy_extras/nodes_canny.py
index 8138b5f73..fab2ab7ac 100644
--- a/comfy_extras/nodes_canny.py
+++ b/comfy_extras/nodes_canny.py
@@ -1,4 +1,3 @@
-#From https://github.com/kornia/kornia
import math
import torch
diff --git a/folder_paths.py b/folder_paths.py
index a84524d9f..3f9a32b4d 100644
--- a/folder_paths.py
+++ b/folder_paths.py
@@ -181,6 +181,8 @@ def get_full_path(folder_name, filename):
full_path = os.path.join(x, filename)
if os.path.isfile(full_path):
return full_path
+ elif os.path.islink(full_path):
+ logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
return None