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 61429aa commit cb09419Copy full SHA for cb09419
src/cobalt.rs
@@ -1,7 +1,7 @@
1
use std::fs::{self, File};
2
use std::collections::HashMap;
3
use std::io::Write;
4
-use std::path::Path;
+use std::path::{self, Path};
5
use std::ffi::OsStr;
6
use liquid::Value;
7
use walkdir::{WalkDir, DirEntry, WalkDirIterator};
@@ -188,7 +188,7 @@ pub fn build(config: &Config) -> Result<()> {
188
} else {
189
try!(entry_path.split(source_str)
190
.last()
191
- .map(|s| s.trim_left_matches("/"))
+ .map(|s| s.trim_left_matches(path::MAIN_SEPARATOR))
192
.ok_or("Empty path"))
193
};
194
0 commit comments