mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-31 22:11:51 +00:00
This commit is contained in:
parent
8d7ea0424d
commit
089c283ca6
@ -269,6 +269,10 @@ func (f *FolderConfiguration) SharedWith(device protocol.DeviceID) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *FolderConfiguration) CheckAvailableSpace(req int64) error {
|
func (f *FolderConfiguration) CheckAvailableSpace(req int64) error {
|
||||||
|
val := f.MinDiskFree.BaseValue()
|
||||||
|
if val <= 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
fs := f.Filesystem()
|
fs := f.Filesystem()
|
||||||
usage, err := fs.Usage(".")
|
usage, err := fs.Usage(".")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user