Skip to content

Fix file watcher to handle rename events#351

Merged
jeparlefrancais merged 3 commits into
mainfrom
file-watcher-rename-fix
May 26, 2026
Merged

Fix file watcher to handle rename events#351
jeparlefrancais merged 3 commits into
mainfrom
file-watcher-rename-fix

Conversation

@jeparlefrancais

@jeparlefrancais jeparlefrancais commented May 25, 2026

Copy link
Copy Markdown
Contributor

Closes #340

Improved the file watcher to process rename events and also remove empty folders after the process if they weren't present initially.

  • add entry to the changelog

@github-actions

Copy link
Copy Markdown

Coverage after merging file-watcher-rename-fix into main will be

85.06%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src/cli/utils
   file_watcher.rs0%100%0%0%102–109, 111–113, 119, 121–124, 126, 128–131, 133, 136–137, 139–144, 146, 149–150, 152–158, 160, 163–165, 169, 172–179, 181, 187–192, 194, 203–204, 206–209, 211, 213, 216–217, 219–221, 223, 226–227, 229–241, 243–247, 249–250, 252, 255, 257, 259–260, 262–273, 275–281, 283–285, 287–288, 290, 292–295, 297–305, 307–309, 312–315, 317, 321–325, 327–332, 334–339, 341–349, 352–354, 356–364, 366–374, 377–378, 381–389, 391–394, 396–399, 401–409, 41, 411–413, 415, 42, 420–429, 431, 438–439, 44, 441, 446–447, 449, 45, 451–452, 454–459, 46, 460–463, 47–55, 57–58, 60, 62–63, 65–66, 71–73, 75–76, 78–80, 82–84, 86–89, 91–92, 94–99
src/frontend
   mod.rs100%100%100%100%
   resources.rs66.98%100%66.67%67.03%109–117, 119, 122, 124–127, 129–137, 139, 142, 147, 149–151, 154, 156, 161–167, 169, 177–180, 203, 205, 210, 214–215, 217, 230–231, 233, 240–241, 243, 332–334, 337–342, 344–346, 364–366, 368–373, 57–59, 77
   worker_tree.rs48.73%100%45.45%49.06%112–113, 123, 151, 163, 166, 171, 177, 180, 184, 195–196, 199, 234, 236–237, 239–249, 251–253, 255, 258, 284, 294, 301–305, 308–313, 316–317, 319–328, 330–332, 335–336, 338–343, 345–348, 351–352, 354–358, 360–363, 365, 367–368, 370, 372–375, 377, 379, 381–387, 391–392, 395–398, 401–402, 404, 406–411, 430–431, 433–437, 439–443, 445, 447, 468, 471, 473–479, 481, 483, 50, 52, 54, 61, 63, 65, 76, 78–79, 82

@jeparlefrancais jeparlefrancais merged commit 1a3154c into main May 26, 2026
6 checks passed
@jeparlefrancais jeparlefrancais deleted the file-watcher-rename-fix branch May 26, 2026 15:10
@jeparlefrancais jeparlefrancais mentioned this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Folder gets deleted if there is no file inside

1 participant