recreate directory when emptied
This commit is contained in:
parent
173e62d286
commit
87f7d4c9f9
1 changed files with 6 additions and 1 deletions
|
@ -109,7 +109,12 @@ func cleanupLbrynet() error {
|
||||||
return errors.Err(err)
|
return errors.Err(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err = os.RemoveAll(lbrynetDir + "/blobfiles/")
|
blobsDir := lbrynetDir + "/blobfiles/"
|
||||||
|
err = os.RemoveAll(blobsDir)
|
||||||
|
if err != nil {
|
||||||
|
return errors.Err(err)
|
||||||
|
}
|
||||||
|
err = os.Mkdir(blobsDir, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Err(err)
|
return errors.Err(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue