Temp File API Improvements

This commit is contained in:
Konloch 2024-10-02 12:47:52 -06:00
parent 3f407ea506
commit 334a9231fc

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -13,7 +13,7 @@ public class TempFile
{ {
private File parent; private File parent;
private final File file; private final File file;
private final String uniqueName; private String uniqueName;
private final HashSet<String> createdFilePaths = new HashSet<>(); private final HashSet<String> createdFilePaths = new HashSet<>();
public TempFile(File file, String uniqueName) public TempFile(File file, String uniqueName)
@ -44,6 +44,11 @@ public class TempFile
this.parent = parent; this.parent = parent;
} }
public void setUniqueName(String uniqueName)
{
this.uniqueName = uniqueName;
}
public void markAsCreatedFile(File file) public void markAsCreatedFile(File file)
{ {
createdFilePaths.add(file.getAbsolutePath()); createdFilePaths.add(file.getAbsolutePath());