mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
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:
9
briar-api/src/net/sf/briar/api/os/FileUtils.java
Normal file
9
briar-api/src/net/sf/briar/api/os/FileUtils.java
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user