summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-06-03 13:04:15 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-06-03 13:04:15 +0200
commit11a618d333094abfd363ac48492d80ba28fba244 (patch)
tree9efad36ffce72b1b79dfc542c75fc3c60c13d914
parent29d212324514058b29f315d9297068b5a26b716a (diff)
downloadfss-11a618d333094abfd363ac48492d80ba28fba244.tar.gz
fss-11a618d333094abfd363ac48492d80ba28fba244.tar.xz
Absolute path here
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/client.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.rs b/src/client.rs
index bde7882..e58ee9d 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -47,6 +47,7 @@ async fn main() -> Result<()> {
match matches.subcommand() {
("index", Some(mtch)) => {
let path = mtch.value_of("file").map(String::from).unwrap(); // safe by clap
+ let path = std::env::current_dir()?.join(path).display().to_string();
let request = tonic::Request::new(IndexFileRequest { path });
let response = client.index_file(request).await?;