[Esbox-commits] r2143 - branches/2.0.0-prefinal/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware

eswartz at garage.maemo.org eswartz at garage.maemo.org
Thu Sep 10 17:16:13 EEST 2009


Author: eswartz
Date: 2009-09-10 17:16:13 +0300 (Thu, 10 Sep 2009)
New Revision: 2143

Modified:
   branches/2.0.0-prefinal/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMDownloader.java
Log:
Merge rev 2142 from trunk -- free space detection on MacOS

Modified: branches/2.0.0-prefinal/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMDownloader.java
===================================================================
--- branches/2.0.0-prefinal/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMDownloader.java	2009-09-10 13:13:45 UTC (rev 2142)
+++ branches/2.0.0-prefinal/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMDownloader.java	2009-09-10 14:16:13 UTC (rev 2143)
@@ -552,7 +552,8 @@
 	 * available on disk is bigger than the size of uncompressed Maemo SDK virtual image); false, otherwise.
 	 */
 	private static boolean haveEnoughtFreeSpace(int fileSize, File localFile) throws IOException {
-		long freeSpace = FilesystemUtils.freeSpaceOS(new Path(localFile.getAbsolutePath()),true);
+		Path filePath = new Path(localFile.getPath());
+		long freeSpace = FilesystemUtils.freeSpaceOS(filePath.removeLastSegments(1),true);
 		return freeSpace > fileSize;
 	}
 	



More information about the Esbox-commits mailing list