Return the resource name (file name or directory name) from `path` which is the last path segment.
(path, force_posix=False)
| 193 | |
| 194 | |
| 195 | def resource_name(path, force_posix=False): |
| 196 | """ |
| 197 | Return the resource name (file name or directory name) from `path` which |
| 198 | is the last path segment. |
| 199 | """ |
| 200 | _left, right = split_parent_resource(path, force_posix) |
| 201 | return right or "" |
| 202 | |
| 203 | |
| 204 | def file_name(path, force_posix=False): |
no test coverage detected