ensure filestore's directory exists
This commit is contained in:
parent
711809e564
commit
d1db159552
|
@ -4,10 +4,15 @@ import (
|
|||
"github.com/tus/tusd"
|
||||
"github.com/tus/tusd/filestore"
|
||||
"net/http"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
if err := os.MkdirAll("./data/", os.FileMode(0666)); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
store := filestore.FileStore{
|
||||
Path: "./data/",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue