[Esbox-commits] r2142 - trunk/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware

raul at garage.maemo.org raul at garage.maemo.org
Thu Sep 10 16:13:46 EEST 2009


Author: raul
Date: 2009-09-10 16:13:45 +0300 (Thu, 10 Sep 2009)
New Revision: 2142

Modified:
   trunk/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMDownloader.java
Log:
Bug fix 4480

Modified: trunk/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMDownloader.java
===================================================================
--- trunk/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMDownloader.java	2009-09-10 12:39:40 UTC (rev 2141)
+++ trunk/org.maemo.esbox.vm.vmware/src/org/maemo/esbox/internal/api/vm/vmware/MaemoSDKVMDownloader.java	2009-09-10 13:13:45 UTC (rev 2142)
@@ -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