Extract the folder name from a path
(path)
| 959 | |
| 960 | |
| 961 | def 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 | |
| 970 | def get_parent_folder(path): |
nothing calls this directly
no outgoing calls
no test coverage detected