Coollab-Art / Coollab-Art/folder_watcher

file_renamed callback

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
9
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When, during an update, we detect that exactly one file has been removed and one has been added, this is most likely a rename. We could detect that and trigger a special callback.
This can be very useful: for example in CoolLab when a node definition gets renamed we could automatically update all nodes that used that definition so that they now use the new name of that same definition, thus avoiding a "definition not found" error.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how folder_watcher detects updates and exposes callbacks for added and removed files. Define the behavior for an update containing exactly one removal and one addition, then verify that a rename callback is triggered with enough information for callers to update references.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.