MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / get_folder_name

Function get_folder_name

codeclash/viewer/app.py:961–967  ·  view source on GitHub ↗

Extract the folder name from a path

(path)

Source from the content-addressed store, hash-verified

959
960
961def get_folder_name(path):
962 """Extract the folder name from a path"""
963 if not path:
964 return ""
965 from pathlib import Path
966
967 return Path(path).name
968
969
970def get_parent_folder(path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected