Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,12 @@ async fn send(args: SendArgs) -> anyhow::Result<()> {
);
std::process::exit(1);
}
// todo: remove this as soon as we have a mem store that does not require a temp dir,
// or create a temp dir outside the current directory.
if cwd.join(&args.path) == cwd {
println!("can not share from the current directory");
std::process::exit(1);
}

let mut mp = MultiProgress::new();
let mp2 = mp.clone();
Expand Down
Loading