(self, path)
| 987 | return path.rpartition("\\")[2] |
| 988 | |
| 989 | def dirname(self, path): |
| 990 | name = path.rstrip("\\").rpartition("\\")[0] |
| 991 | if name[1:] == ":": |
| 992 | return name + "\\" |
| 993 | return name |
| 994 | |
| 995 | def hassuffix(self, path, suffix): |
| 996 | return path.casefold().endswith(suffix.casefold()) |
no test coverage detected