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

[ACI-2800] Option to skip existing files when restoring the cache #56

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

imrekel
Copy link
Contributor

@imrekel imrekel commented Sep 27, 2024

No description provided.


var wg sync.WaitGroup
semaphore := make(chan struct{}, 20) // Limit parallelization
for _, file := range dd.Files {
if skipExisting {
if _, err := os.Stat(file.Path); err == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We now also have some file stat logic in downloadFile(), did you think about merging these so that we have all the logic related to files in a single place?

@imrekel imrekel merged commit f600e2a into main Sep 27, 2024
1 check passed
@imrekel imrekel deleted the skip-existing-files branch September 27, 2024 14:21
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