(&self, path: impl AsRef<Path>)
| 134 | } |
| 135 | |
| 136 | pub async fn create_dir(&self, path: impl AsRef<Path>) -> io::Result<()> { |
| 137 | match self { |
| 138 | Self::Real => fs::create_dir(path).await, |
| 139 | Self::Chroot(root) => fs::create_dir(append(root.path(), path)).await, |
| 140 | Self::Fake(_) => Err(io::Error::other("unimplemented")), |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | pub async fn create_dir_all(&self, path: impl AsRef<Path>) -> io::Result<()> { |
| 145 | match self { |