Check disk before even trying to run the download

This commit is contained in:
Dane Everitt
2020-12-20 11:08:01 -08:00
parent 17daa2071f
commit 9c53436470
5 changed files with 18 additions and 8 deletions

View File

@@ -256,6 +256,11 @@ func postServerPullRemoteFile(c *gin.Context) {
return
}
if err := s.Filesystem().HasSpaceErr(true); err != nil {
WithError(c, err)
return
}
dl := downloader.New(s, downloader.DownloadRequest{
URL: u,
Directory: data.Directory,