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

Refactor NewFile and NewFolder functions. #167

Merged
merged 4 commits into from
Oct 24, 2021
Merged

Refactor NewFile and NewFolder functions. #167

merged 4 commits into from
Oct 24, 2021

Conversation

AlexHladin
Copy link
Contributor

Motivation

I want to make code more readable, performant, and mature. So, I've made a couple of changes to the NewFile and NewFolder functions, making them async and a little bit improved performance.

Changes

  1. Switched NewFolder and NewFile functions to async style
  2. Added mkdirRecursively function (reduces duplicated code from functions above)

@vercel
Copy link

vercel bot commented Oct 23, 2021

Someone is attempting to deploy a commit to a Personal Account owned by @kimlimjustin on Vercel.

@kimlimjustin first needs to authorize it.

Copy link
Owner

@kimlimjustin kimlimjustin left a comment

Choose a reason for hiding this comment

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

This PR looks good, however, when I tested this locally, something went wrong.....

src/Components/Files/File Operation/new.ts Outdated Show resolved Hide resolved
@AlexHladin
Copy link
Contributor Author

This PR looks good, however, when I tested this locally, something went wrong.....

yeah, there was a small bug, but I fixed it

@vercel
Copy link

vercel bot commented Oct 24, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/kimlimjustin/xplorer/47DaYimPcW5HpwMuqf7d9m3o5srg
✅ Preview: https://xplorer-git-fork-alexhladin-refactor-new-fi-c01877-kimlimjustin.vercel.app

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