forked from j62/ctbrec
Create recordings dir, if it does not exist in getRecordingsFileStore
This commit is contained in:
parent
f24959b76e
commit
07e0eb005b
|
@ -733,6 +733,9 @@ public class LocalRecorder implements Recorder {
|
|||
|
||||
private FileStore getRecordingsFileStore() throws IOException {
|
||||
File recordingsDir = new File(config.getSettings().recordingsDir);
|
||||
if(!recordingsDir.exists()) {
|
||||
Files.createDirectories(recordingsDir.toPath());
|
||||
}
|
||||
FileStore store = Files.getFileStore(recordingsDir.toPath());
|
||||
return store;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue