Returns `Ok(true)` if the path points at an existing entity. This function will traverse symbolic links to query information about the destination file. In case of broken symbolic links this will return `Ok(false)`. This is a proxy to [`tokio::fs::try_exists`].
(&self, path: impl AsRef<Path>)
| 292 | /// |
| 293 | /// This is a proxy to [`tokio::fs::try_exists`]. |
| 294 | pub async fn try_exists(&self, path: impl AsRef<Path>) -> Result<bool, io::Error> { |
| 295 | match self { |
| 296 | Self::Real => fs::try_exists(path).await, |
| 297 | Self::Chroot(root) => fs::try_exists(append(root.path(), path)).await, |
| 298 | Self::Fake(_) => panic!("unimplemented"), |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | /// Returns `true` if the path points at an existing entity. |
| 303 | /// |
no test coverage detected