fix deleted folder
This commit is contained in:
parent
b8f85565b2
commit
79b260ff64
1 changed files with 4 additions and 2 deletions
|
|
@ -768,8 +768,10 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
|
||||
File parent = targetFile.getParentFile();
|
||||
|
||||
if(!parent.mkdirs()) { // in case if it were manually deleted
|
||||
throw new RuntimeException("Unable to create: " + parent);
|
||||
if(!parent.exists()) {
|
||||
if (!parent.mkdirs()) { // in case if it were manually deleted
|
||||
throw new RuntimeException("Unable to create: " + parent);
|
||||
}
|
||||
}
|
||||
|
||||
EncoderInfo info = getInfo();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue