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:
Laurent Clouet
2017-03-17 00:39:06 +01:00
parent 32dcbecfd3
commit 2d0cdc41d9

View File

@@ -590,7 +590,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
return 0;
}
catch (Exception e) {
if (Utils.noFreeSpaceOnDisk(destination_)) {
if (Utils.noFreeSpaceOnDisk(new File(destination_).getParent())) {
throw new FermeExceptionNoSpaceLeftOnDevice();
}