We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93fb2c2 commit ca69c44Copy full SHA for ca69c44
src/docs.rs
@@ -327,7 +327,11 @@ mod docfile {
327
/// Given a file path and delimiters, generate a DocFile for all files requested.
328
pub fn start(p: &Path, delims: Delimiters) -> Vec<DocFile> {
329
if p.is_dir() || p.to_str().unwrap().contains("*") {
330
- let pth = home_dir().unwrap().join(p.strip_prefix("~").unwrap());
+ let pth = if cfg!(windows) {
331
+ p.to_path_buf()
332
+ } else {
333
+ home_dir().unwrap().join(p.strip_prefix("~").unwrap())
334
+ };
335
let files: Vec<_> = glob(pth.to_str().unwrap())
336
.unwrap()
337
.filter_map(|x| x.ok())
0 commit comments