Temp File API Improvements
This commit is contained in:
parent
3f407ea506
commit
334a9231fc
|
@ -13,7 +13,7 @@ public class TempFile
|
|||
{
|
||||
private File parent;
|
||||
private final File file;
|
||||
private final String uniqueName;
|
||||
private String uniqueName;
|
||||
private final HashSet<String> createdFilePaths = new HashSet<>();
|
||||
|
||||
public TempFile(File file, String uniqueName)
|
||||
|
@ -44,6 +44,11 @@ public class TempFile
|
|||
this.parent = parent;
|
||||
}
|
||||
|
||||
public void setUniqueName(String uniqueName)
|
||||
{
|
||||
this.uniqueName = uniqueName;
|
||||
}
|
||||
|
||||
public void markAsCreatedFile(File file)
|
||||
{
|
||||
createdFilePaths.add(file.getAbsolutePath());
|
||||
|
|
Loading…
Reference in New Issue
Block a user