]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/linkchecker/main.rs
fix a suggestion message
[rust.git] / src / tools / linkchecker / main.rs
index 94e82e3d9f7664f993ea6fcb2db1e0a9a156d1df..46daaf42883f026a2e675247ae3fd3c4c6f79d12 100644 (file)
@@ -182,8 +182,9 @@ impl Checker {
     fn walk(&mut self, dir: &Path, report: &mut Report) {
         for entry in t!(dir.read_dir()).map(|e| t!(e)) {
             let path = entry.path();
-            let kind = t!(entry.file_type());
-            if kind.is_dir() {
+            // Goes through symlinks
+            let metadata = t!(fs::metadata(&path));
+            if metadata.is_dir() {
                 self.walk(&path, report);
             } else {
                 self.check(&path, report);