Skip to content

Project watch: watch for deleted directories #637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 28, 2022

Conversation

anthmatic
Copy link
Contributor

Description and Context

project watch was previous only watching for directories. This updates the watcher to include directories and hit the same delete endpoint.

Screenshots

TODO

Who to Notify

'deleteFile'
);
});
watcher.on('unlinkDir', async filePath => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kind of a nit, but should this arg be folderPath?

);
});
watcher.on('unlinkDir', async filePath => {
addFile(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker, but this func supports folders and also the "delete" action now. I wonder if we should change the name of it to be more generic.

Copy link
Contributor

@brandenrodgers brandenrodgers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neither of my comments are blockers

@anthmatic
Copy link
Contributor Author

Thanks @brandenrodgers, renamed a couple things based on your feedback

@anthmatic anthmatic merged commit 169bf6a into master Jan 28, 2022
@anthmatic anthmatic deleted the project-watch-delete-directory branch January 28, 2022 21:05
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.

2 participants