(self, path)
| 115 | os.chmod(filename, mode) |
| 116 | |
| 117 | def split_leading_dir(self, path): |
| 118 | path = str(path) |
| 119 | path = path.lstrip("/").lstrip("\\") |
| 120 | if "/" in path and ( |
| 121 | ("\\" in path and path.find("/") < path.find("\\")) or "\\" not in path |
| 122 | ): |
| 123 | return path.split("/", 1) |
| 124 | elif "\\" in path: |
| 125 | return path.split("\\", 1) |
| 126 | else: |
| 127 | return path, "" |
| 128 | |
| 129 | def has_leading_dir(self, paths): |
| 130 | """ |
no test coverage detected