Separate FileUtils implementations for Android and desktop builds.

The method used by Commons IO to get the available disk space fails on
Android devices that lack a df binary - use the Android API instead.
This commit is contained in:
akwizgran
2013-07-27 20:50:05 +01:00
parent 0941697922
commit c868764244
23 changed files with 116 additions and 295 deletions

View File

@@ -0,0 +1,9 @@
package net.sf.briar.api.os;
import java.io.File;
import java.io.IOException;
public interface FileUtils {
long getFreeSpace(File f) throws IOException;
}