AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Github clone repository to desktop11/24/2023 ![]() GitHub Desktop will open your default browser. In the "Sign in Using Your Browser" modal window, click Continue With Browser. In the "Preferences" window, on the Accounts pane, click the Sign In button next to "". I could make a pull request for this solution and figure out if there are improvements that can be made during the review of it.In the menu bar, select GitHub Desktop, then click Preferences. Perhaps someone knows a more efficient way to check this though. This allows checking if the folder is empty or not, but may be less efficient for folders with a lot of files, as a repository folder very well may. However, to do so, I make use of fs.readDir, which retrieves a list of file names in the folder. I have already tried and tested a solution for this and it seems to work as intended. The second option should cover each scenario, however I did have one concern. The first option is simpler but still leaves a scenario with this issue (effectively behaving as it did before my change). This would allow to warn the user via the red banner error display when a folder containing files exists at the path while eliminating both situations where an error could display for an empty folder being selected.
0 Comments
Read More
Leave a Reply. |