Improved directory structure of the "reader" cache

This commit is contained in:
CalDescent 2021-11-07 17:16:42 +00:00
parent b6418cd912
commit 3a2e68c334

View File

@ -34,7 +34,6 @@ import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException; import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.util.Arrays; import java.util.Arrays;
import java.util.MissingResourceException;
public class ArbitraryDataReader { public class ArbitraryDataReader {
@ -64,7 +63,7 @@ public class ArbitraryDataReader {
// Use the user-specified temp dir, as it is deterministic, and is more likely to be located on reusable storage hardware // Use the user-specified temp dir, as it is deterministic, and is more likely to be located on reusable storage hardware
String baseDir = Settings.getInstance().getTempDataPath(); String baseDir = Settings.getInstance().getTempDataPath();
this.workingPath = Paths.get(baseDir, "reader", this.resourceId); this.workingPath = Paths.get(baseDir, "reader", this.resourceIdType.toString(), this.resourceId, this.service.toString());
this.uncompressedPath = Paths.get(this.workingPath.toString() + File.separator + "data"); this.uncompressedPath = Paths.get(this.workingPath.toString() + File.separator + "data");
} }