From dd7b93f4434597d9d2b8e96c9db544515e64b39f Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Wed, 3 Apr 2024 17:47:11 -0400 Subject: [PATCH] Update paste.rs --- src/paste.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paste.rs b/src/paste.rs index 112c0987..962506bb 100644 --- a/src/paste.rs +++ b/src/paste.rs @@ -177,7 +177,7 @@ impl Paste { .unwrap_or_default() .to_string(); let file_path = util::glob_match_file(path.clone()) - .map_err(|_| IoError::new(IoErrorKind::Other, String::from("path is not valid")))?; + .await.map_err(|_| IoError::new(IoErrorKind::Other, String::from("path is not valid")))?; if file_path.is_file() && file_path.exists() { return Err(error::ErrorConflict("file already exists\n")); }