add some tests and correct deletion path
This commit is contained in:
1 parent
924f05b2d2
commit
916f092406
5 files changed
+92
-13
No files matched your search
+4
-2
@@ -457,9 +457,11 @@ func addToVideoHandlers() {
|
||||
return database.ManualSuccessResponse(err)
|
||||
}
|
||||
|
||||
err = os.Remove(vidpath)
|
||||
assembledPath := database.SettingsVideoPrefix + "/" + vidpath
|
||||
|
||||
err = os.Remove(assembledPath)
|
||||
if err != nil {
|
||||
fmt.Printf("unable to delete file: %s -- %s\n", vidpath, err.Error())
|
||||
fmt.Printf("unable to delete file: %s -- %s\n", assembledPath, err.Error())
|
||||
return database.ManualSuccessResponse(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user