fix: check local path exists

See coop-cloud/organising#245.
This commit is contained in:
decentral1se 2021-11-13 22:50:14 +01:00
parent f74261dbe6
commit 751b187df6
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ And if you want to copy that file back to your current working directory locally
logrus.Debugf("assuming transfer is going TO the container")
}
if !isToContainer {
if _, err := os.Stat(dstPath); os.IsNotExist(err) {
logrus.Fatalf("%s does not exist locally?", dstPath)
}
}
appFiles, err := config.LoadAppFiles("")
if err != nil {
logrus.Fatal(err)