diff options
| author | anand <anand.panchdhari@gmail.com> | 2025-11-19 10:26:48 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2025-11-19 10:26:48 +0530 |
| commit | 5dd65997c90334fad1bd526fc6a891c861f3b5d5 (patch) | |
| tree | 9388296dc73499113784dd395c1600102d376593 | |
Initial commit and folder creation
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Cargo.lock | 7 | ||||
| -rw-r--r-- | Cargo.toml | 6 | ||||
| -rw-r--r-- | src/main.rs | 8 |
4 files changed, 22 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..73850d1 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "tmuxthing" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..e1192a7 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "tmuxthing" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..b28778d --- /dev/null +++ b/src/main.rs @@ -0,0 +1,8 @@ +use std::{fs, path::Path}; +fn main() { + let mut result = Ok(()); + if !Path::new("~/.tmux-thing").exists() { + result = fs::create_dir("~/.tmux-thing"); + } + println!("{:?}", result) +} |
