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

Do a directory existing check before we check for internet. #401

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

CartBlanche
Copy link
Collaborator

No description provided.

@CartBlanche CartBlanche self-assigned this Nov 17, 2023
if (CreateFolder(local_path, force) == false)
local_path = Path.Combine(FirmwareDownloadsFilePathRoot, version);

if (!CreateFolder(local_path, force) && Directory.EnumerateFiles(local_path).Any())
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah this is interesting ... at least validate there's one file. Part of me wonders if we just remove the "force" and always overwrite. I wonder if we're providing any value with the force flag? (something to chat about at least)

@CartBlanche CartBlanche merged commit e1b2f86 into develop Nov 27, 2023
@CartBlanche CartBlanche deleted the dominique-FixForPaul branch November 27, 2023 09:36
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