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"
|
||||||
"github.com/tus/tusd/filestore"
|
"github.com/tus/tusd/filestore"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
|
if err := os.MkdirAll("./data/", os.FileMode(0666)); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
|
||||||
store := filestore.FileStore{
|
store := filestore.FileStore{
|
||||||
Path: "./data/",
|
Path: "./data/",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue