Return the file base name for a path. The base name is the base name of the file minus the extension. For a directory return an empty string.
(path, force_posix=False)
| 221 | |
| 222 | |
| 223 | def file_base_name(path, force_posix=False): |
| 224 | """ |
| 225 | Return the file base name for a path. The base name is the base name of |
| 226 | the file minus the extension. For a directory return an empty string. |
| 227 | """ |
| 228 | return splitext(path, force_posix)[0] |
| 229 | |
| 230 | |
| 231 | def file_extension(path, force_posix=False): |
no test coverage detected