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

[feat] added logs when deleting files/folders #772

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

silentrald
Copy link
Contributor

@silentrald silentrald commented Jan 31, 2025

Issue from discord

When deleting a file or folder, log them so that it could be tracked in the logs file when checking for user errors.

Instead of using the direct function in fs, use there equivalent in fs.helpers module implementation.
unlink => deleteFile
unlinkSync => deleteFileSync
rm => deleteFolder
rmSync => deleteFolderSync

NOTE:
The wrapper function contains error codes without any resource, but they don't report anything on the frontend yet so didn't add it for now.

Copy link
Owner

@Zagrios Zagrios left a comment

Choose a reason for hiding this comment

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

Looks good to me 🙌

@Zagrios
Copy link
Owner

Zagrios commented Jan 31, 2025

Thanks @silentrald ❤️
Merging 🎉

@Zagrios Zagrios merged commit 0f96db8 into Zagrios:master Jan 31, 2025
5 checks passed
@silentrald silentrald deleted the feat/delete-guard-rails branch January 31, 2025 15:30
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