Index: recipe_engine/third_party/setuptools/utils.py |
diff --git a/recipe_engine/third_party/setuptools/utils.py b/recipe_engine/third_party/setuptools/utils.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..91e4b87f65e9cce7ac0efc82cab400bce7174d38 |
--- /dev/null |
+++ b/recipe_engine/third_party/setuptools/utils.py |
@@ -0,0 +1,11 @@ |
+import os |
+import os.path |
+ |
+ |
+def cs_path_exists(fspath): |
+ if not os.path.exists(fspath): |
+ return False |
+ # make absolute so we always have a directory |
+ abspath = os.path.abspath(fspath) |
+ directory, filename = os.path.split(abspath) |
+ return filename in os.listdir(directory) |