feat: hiding only directories instead of files (#175)

A `--hidden` pattern with `/` suffix means hiding only directories not files.
A `--hidden` pattern without `/` will hide matching files and directories.
This commit is contained in:
sigoden
2023-02-19 22:03:59 +08:00
committed by GitHub
parent 0000bd27f5
commit b7c5119c2e
3 changed files with 53 additions and 11 deletions

View File

@@ -65,6 +65,7 @@ pub fn tmpdir() -> TempDir {
}
}
}
tmpdir.child("dir4/hidden").touch().unwrap();
tmpdir
}