Skip to content

Commit d17f838

Browse files
authored
fix: log dir (#249)
* fix: log dir * fix: dir comment
1 parent 96fcad0 commit d17f838

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/pgt_fs/src/dir.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ use std::{env, fs, path::PathBuf};
33
use tracing::warn;
44

55
pub fn ensure_cache_dir() -> PathBuf {
6-
if let Some(proj_dirs) = ProjectDirs::from("dev", "supabase-community", "pglt") {
7-
// Linux: /home/alice/.cache/pglt
8-
// Win: C:\Users\Alice\AppData\Local\supabase-community\pglt\cache
9-
// Mac: /Users/Alice/Library/Caches/dev.supabase-community.pglt
6+
if let Some(proj_dirs) = ProjectDirs::from("dev", "supabase-community", "pgt") {
7+
// Linux: /home/alice/.cache/pgt
8+
// Win: C:\Users\Alice\AppData\Local\supabase-community\pgt\cache
9+
// Mac: /Users/Alice/Library/Caches/dev.supabase-community.pgt
1010
let cache_dir = proj_dirs.cache_dir().to_path_buf();
1111
if let Err(err) = fs::create_dir_all(&cache_dir) {
1212
let temp_dir = env::temp_dir();

0 commit comments

Comments
 (0)