Skip to content

Commit

Permalink
disable diskusage
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Sep 1, 2024
1 parent c146b15 commit defee4b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/croc/croc.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
"github.com/schollz/croc/v10/src/comm"
"github.com/schollz/croc/v10/src/compress"
"github.com/schollz/croc/v10/src/crypt"
"github.com/schollz/croc/v10/src/diskusage"
"github.com/schollz/croc/v10/src/message"
"github.com/schollz/croc/v10/src/models"
"github.com/schollz/croc/v10/src/tcp"
Expand Down Expand Up @@ -1270,11 +1269,11 @@ func (c *Client) processMessageFileInfo(m message.Message) (done bool, err error
}
}
}
// check the totalSize does not exceed disk space
usage := diskusage.NewDiskUsage(".")
if usage.Available() < uint64(totalSize) {
return true, fmt.Errorf("not enough disk space")
}
// // check the totalSize does not exceed disk space
// usage := diskusage.NewDiskUsage(".")
// if usage.Available() < uint64(totalSize) {
// return true, fmt.Errorf("not enough disk space")
// }

// c.spinner.Stop()
action := "Accept"
Expand Down

0 comments on commit defee4b

Please sign in to comment.