From 4af159447309ba6a5c786bc192c880e94dfb5b48 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 22 Jun 2020 11:39:17 +0200 Subject: [PATCH] doc update Signed-off-by: Wolfgang Bumiller --- src/accessor/aio.rs | 4 +++- src/accessor/sync.rs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/accessor/aio.rs b/src/accessor/aio.rs index 779373f..5f16d73 100644 --- a/src/accessor/aio.rs +++ b/src/accessor/aio.rs @@ -170,7 +170,9 @@ impl Directory { }) } - /// Lookup an entry in a directory. + /// Lookup an entry starting from this current directory. + /// + /// For convenience, this already resolves paths with multiple components. pub async fn lookup>(&self, path: P) -> io::Result>> { if let Some(file_entry) = self.inner.lookup(path.as_ref()).await? { Ok(Some(FileEntry { inner: file_entry })) diff --git a/src/accessor/sync.rs b/src/accessor/sync.rs index 265e500..3eb08cc 100644 --- a/src/accessor/sync.rs +++ b/src/accessor/sync.rs @@ -217,7 +217,9 @@ impl Directory { }) } - /// Lookup an entry in a directory. + /// Lookup an entry starting from this current directory. + /// + /// For convenience, this already resolves paths with multiple components. pub fn lookup>(&self, path: P) -> io::Result>> { if let Some(file_entry) = poll_result_once(self.inner.lookup(path.as_ref()))? { Ok(Some(FileEntry { inner: file_entry })) -- 2.39.2