(self, path: str)
| 113 | raise |
| 114 | |
| 115 | def split_path(self, path: str) -> Tuple[int, os.stat_result, str]: |
| 116 | filename = os.path.basename(path) |
| 117 | if not filename: |
| 118 | raise RuntimeError(f"{path} has no filename") |
| 119 | if filename in [".", ".."]: |
| 120 | raise RuntimeError(f"{path} filename is {filename}") |
| 121 | if len(filename.encode("utf8")) > 255: |
| 122 | raise OSError(errno.ENAMETOOLONG, os.strerror(errno.ENAMETOOLONG), path) |
| 123 | |
| 124 | dir = os.path.dirname(path) or "." |
| 125 | dir_fd, dir_st = self.opendir(dir) |
| 126 | return dir_fd, dir_st, filename |
| 127 | |
| 128 | def rename(self, old_path: str, new_path: str) -> None: |
| 129 | self._check_user() |
no test coverage detected