Fix path to metadata files for recordings, after the config has been copied to a new version number
This commit is contained in:
parent
943203f755
commit
f293f511f1
|
@ -78,6 +78,7 @@ public class RecordingManager {
|
|||
String json = Files.readString(file.toPath());
|
||||
try {
|
||||
Recording recording = adapter.fromJson(json);
|
||||
recording.setMetaDataFile(file.getCanonicalPath());
|
||||
loadRecording(recording);
|
||||
} catch (Exception e) {
|
||||
LOG.error("Couldn't load recording {}", file, e);
|
||||
|
@ -152,6 +153,7 @@ public class RecordingManager {
|
|||
}
|
||||
|
||||
// delete the meta data
|
||||
|
||||
Files.deleteIfExists(new File(recording.getMetaDataFile()).toPath());
|
||||
|
||||
// delete empty parent files
|
||||
|
|
Loading…
Reference in New Issue