Skip to content

Commit 10af659

Browse files
committed
update
1 parent 283fc93 commit 10af659

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/basic.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ mod in_memory {
722722
unreachable!()
723723
}
724724

725-
fn get_entry_follow(&self, path: &Path) -> Option<&DirectoryEntry> {
725+
fn get_entry_follow_symlink(&self, path: &Path) -> Option<&DirectoryEntry> {
726726
let mut current_path = path.to_path_buf();
727727
let mut seen = std::collections::HashSet::new();
728728

@@ -771,7 +771,7 @@ mod in_memory {
771771

772772
fn metadata(&self, path: &Path) -> std::io::Result<Self::Metadata> {
773773
let entry = self
774-
.get_entry_follow(path)
774+
.get_entry_follow_symlink(path)
775775
.ok_or_else(|| Error::new(ErrorKind::NotFound, "metadata: entry not found"))?;
776776

777777
Ok(entry.as_metadata())
@@ -791,7 +791,7 @@ mod in_memory {
791791
) -> std::io::Result<Box<dyn Iterator<Item = std::io::Result<Self::ReadDirEntry>>>>
792792
{
793793
let entry = self
794-
.get_entry_follow(path)
794+
.get_entry_follow_symlink(path)
795795
.ok_or_else(|| Error::new(ErrorKind::NotFound, "metadata: entry not found"))?;
796796

797797
match &entry {
@@ -813,7 +813,7 @@ mod in_memory {
813813
}
814814

815815
fn is_valid_executable(&self, path: &Path) -> std::io::Result<bool> {
816-
let entry = self.get_entry_follow(path).ok_or_else(|| {
816+
let entry = self.get_entry_follow_symlink(path).ok_or_else(|| {
817817
Error::new(ErrorKind::NotFound, "is_valid_executable: entry not found")
818818
})?;
819819

0 commit comments

Comments
 (0)