Added printing for both shells and download paths
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -8,7 +8,7 @@ use axum::{
|
||||
};
|
||||
|
||||
mod argparse;
|
||||
mod print_dir;
|
||||
mod print_interface;
|
||||
mod config;
|
||||
mod shells;
|
||||
mod logging;
|
||||
@@ -23,7 +23,14 @@ async fn main() {
|
||||
None => conf.web_port
|
||||
};
|
||||
|
||||
print_dir::print_interface(&args.interface, &port, &args.directory);
|
||||
println!("Files in current directory:");
|
||||
print_interface::print_directory(&args.interface, &port, &args.directory, None).unwrap();
|
||||
|
||||
println!("\nFiles in persistent download directory:");
|
||||
print_interface::print_directory(&args.interface, &port, &conf.get_download_path(), Some("download")).unwrap();
|
||||
|
||||
println!("\nConfigured shells:");
|
||||
print_interface::print_interface(&args.interface, &port, &conf.get_shell_keys(), Some("shells"));
|
||||
|
||||
let app = Router::new()
|
||||
.route("/upload", post(upload::upload_handler))
|
||||
|
||||
Reference in New Issue
Block a user