Include path separator in log message
This adds a path separator between the directory and filenames in the
message printed by `zola serve` to indicate it is listening for changes.
Before:
Listening for changes in /path/to/dir{config.toml, content, sass, static, templates}
After:
Listening for changes in /path/to/dir/{config.toml, content, sass, static, templates}
^
use std::fs::{read_dir, remove_dir_all};
use std::net::{SocketAddrV4, TcpListener};
-use std::path::{Path, PathBuf};
+use std::path::{Path, PathBuf, MAIN_SEPARATOR};
use std::sync::mpsc::channel;
use std::thread;
use std::time::{Duration, Instant};
@@ -419,7 +419,12 @@ pub fn serve(
broadcaster
};
- println!("Listening for changes in {}{{{}}}", root_dir.display(), watchers.join(", "));
+ println!(
+ "Listening for changes in {}{}{{{}}}",
+ root_dir.display(),
+ MAIN_SEPARATOR,
+ watchers.join(", ")
+ );
println!("Press Ctrl+C to stop\n");
// Delete the output folder on ctrl+C
