Skip to content
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

Clean up specified directories during user deletion #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

z4ab
Copy link

@z4ab z4ab commented Mar 31, 2024

Closes #1.
I decided to add a directories property to the config object so the the script can remove multiple directories. I could instead use a constant in the script that specifies the directories that need to be deleted, but I thought it would be inconsistent.

Copy link
Member

@ben-z ben-z left a comment

Choose a reason for hiding this comment

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

This is great! Thanks for taking the initiative. Can we make this a bit more general, and take in template strings instead? We can have the string handle %u and %U replacements automatically.

src/schema.mjs Outdated Show resolved Hide resolved
Copy link
Member

@ben-z ben-z left a comment

Choose a reason for hiding this comment

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

Looks pretty good!

src/index.mjs Outdated Show resolved Hide resolved
Co-authored-by: Ben Zhang <ben-z@users.noreply.github.com>
Copy link
Member

@ben-z ben-z left a comment

Choose a reason for hiding this comment

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

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.

Implement a way to clean up specified directories during user deletion
2 participants