Skip to content

Commit

Permalink
fix backslash on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
dataf3l committed Apr 25, 2017
1 parent 2fc693a commit 42d579d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn hello_world(req: &mut Request) -> IronResult<Response> {
for path in paths {
//println!("Name: {}", path.unwrap().path().display());
let path:String = format!("{}",path.unwrap().path().display());
file_list.push(format!("\"{}\"",path))
file_list.push(format!("\"{}\"",path.replace("\\","/")))
}
let joined = file_list.join(",");
let ax = format!("{}{}{}","{\"file_list\":[",joined,"]}");
Expand Down

0 comments on commit 42d579d

Please sign in to comment.