From 7a8376ebad9b9bc9358a5efe78449cbe64df707d Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Sun, 11 Aug 2024 18:29:48 +0200 Subject: [PATCH] fix: create directory before canonicalizing --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 96fb0d2..9fb3cd6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -111,6 +111,7 @@ fn run() -> anyhow::Result<()> { let token = get_token()?; let home_cas_dir = data_dir.join("cas"); + create_dir_all(&home_cas_dir).expect("failed to create cas directory"); let project_root = get_root(&cwd); let cas_dir = if get_root(&home_cas_dir) == project_root { home_cas_dir