Bugfix: no free space detection should use the destination directory, not the actual file because it might not exist yet
This commit is contained in:
@@ -590,7 +590,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
if (Utils.noFreeSpaceOnDisk(destination_)) {
|
if (Utils.noFreeSpaceOnDisk(new File(destination_).getParent())) {
|
||||||
throw new FermeExceptionNoSpaceLeftOnDevice();
|
throw new FermeExceptionNoSpaceLeftOnDevice();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user