(path: OsPath, dir_fd: DirFd<'_, 0>, vm: &VirtualMachine)
| 602 | |
| 603 | #[pyfunction] |
| 604 | fn readlink(path: OsPath, dir_fd: DirFd<'_, 0>, vm: &VirtualMachine) -> PyResult { |
| 605 | let mode = path.mode(); |
| 606 | let [] = dir_fd.0; |
| 607 | let path = |
| 608 | fs::read_link(&path).map_err(|err| OSErrorBuilder::with_filename(&err, path, vm))?; |
| 609 | Ok(mode.process_path(path, vm)) |
| 610 | } |
| 611 | |
| 612 | #[pyattr] |
| 613 | #[pyclass(name)] |
nothing calls this directly
no test coverage detected