Skip to content

Simplify deletion of directory cache temp file#100

Merged
andreaTP merged 2 commits into
bytecodealliance:mainfrom
Marcono1234:patch-2
Jul 20, 2026
Merged

Simplify deletion of directory cache temp file#100
andreaTP merged 2 commits into
bytecodealliance:mainfrom
Marcono1234:patch-2

Conversation

@Marcono1234

@Marcono1234 Marcono1234 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

It is a temp file, so having recursive deletion logic for it seems redundant.

Ignoring the IOException is similar to what the previously called code in PathUtils does.

It is a temp *file*, so having recursive deletion logic for it is redundant.
@Marcono1234
Marcono1234 requested a review from andreaTP as a code owner July 18, 2026 19:23
import java.util.Objects;
import java.util.regex.Pattern;
import run.endive.compiler.Cache;
import run.endive.experimental.dircache.internal.PathUtils;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

PathUtils is now completely unused (and also not covered by tests). Should it be removed?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, dircache is still in experimental state, it's fine to remove an "internal" utility class.

I added a commit on top to fix this and make it mergeable early 🙂

@andreaTP
andreaTP merged commit e8db818 into bytecodealliance:main Jul 20, 2026
25 checks passed
@Marcono1234
Marcono1234 deleted the patch-2 branch July 20, 2026 19:30
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