Merge pull request #14 from alexwlchan/jekyll-cache
- ID
626aff8- date
2024-08-21 00:26:21+00:00- author
Alex Chan <alex@alexwlchan.net>- parents
f9b696a,e2c25ba- message
Merge pull request #14 from alexwlchan/jekyll-cache Delete empty folders which only contain a `.jekyll-cache` folder- changed files
4 files, 10 additions, 2 deletions
Changed files
CHANGELOG.md (390) → CHANGELOG.md (481)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 69f1557..6a89052 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## v1.1.3 - 2024-08-21
+
+Delete empty folders which only contain a `.jekyll-cache` folder.
+
## v1.1.2 - 2024-08-16
Delete empty folders which only contain an `.ipynb_checkpoints` folder.
Cargo.lock (13005) → Cargo.lock (13005)
diff --git a/Cargo.lock b/Cargo.lock
index 9c349b2..584c299 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -115,7 +115,7 @@ dependencies = [
[[package]]
name = "emptydir"
-version = "1.1.2"
+version = "1.1.3"
dependencies = [
"clap",
"colored",
Cargo.toml (203) → Cargo.toml (203)
diff --git a/Cargo.toml b/Cargo.toml
index d0073d0..62a108c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "emptydir"
-version = "1.1.2"
+version = "1.1.3"
edition = "2021"
[dependencies]
src/can_be_deleted.rs (4504) → src/can_be_deleted.rs (4730)
diff --git a/src/can_be_deleted.rs b/src/can_be_deleted.rs
index 84108ec..867af3e 100644
--- a/src/can_be_deleted.rs
+++ b/src/can_be_deleted.rs
@@ -36,6 +36,9 @@ pub fn can_be_deleted(path: &Path) -> bool {
// in the Finder, which I don't need to keep
// * `.ipynb_checkpoints` is a folder used by Jupyter Notebooks, but not
// important if I've deleted the notebooks
+ // * `.jekyll-cache` is a cache directory used by Jekyll sites, but
+ // can be easily regenerated and will be rebuilt regularly as part
+ // of the Jekyll build process
// * `.venv` is the name I use for virtual environments, which I can
// easily regenerate if necessary
// * `__pycache__` is the bytecode cache in Python projects, which is
@@ -48,6 +51,7 @@ pub fn can_be_deleted(path: &Path) -> bool {
let deletable_names = HashSet::from([
OsString::from(".ds_store"),
OsString::from(".ipynb_checkpoints"),
+ OsString::from(".jekyll-cache"),
OsString::from(".venv"),
OsString::from("__pycache__"),
OsString::from("desktop.ini"),