Skip to content

Conversation

@liucijus
Copy link
Collaborator

There are multiple implementation of recursive directory deletion utils. Let's have single implementation.

Copy link
Contributor

@ittaiz ittaiz left a comment

Choose a reason for hiding this comment

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

Very much in favor of the PR in general. See two questions inside

import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;

public class DeleteRecursively {
Copy link
Contributor

Choose a reason for hiding this comment

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

why not keep this implementation? Sounds better without the sort

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why not keep this implementation? Sounds better without the sort

I left the stream based version, because I felt it has less boilerplate code

Copy link
Contributor

Choose a reason for hiding this comment

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

On the other hand it sorts and this one doesn't so it sounds more performant and we're already trying to optimize our perf

@ittaiz
Copy link
Contributor

ittaiz commented Sep 25, 2020

@liucijus if you can minimize force pushing it would really help me review the code (github has better abilities to see new changes)

@liucijus
Copy link
Collaborator Author

Unfortunately I had to force push to not to mess on top of orginal authorship of the code.

@ittaiz
Copy link
Contributor

ittaiz commented Sep 28, 2020

failure is due to github

@ittaiz ittaiz merged commit 6280cdb into bazel-contrib:master Sep 28, 2020
blorente pushed a commit to twitter-forks/rules_scala that referenced this pull request Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants