mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
18 lines
397 B
Java
18 lines
397 B
Java
package org.briarproject.system;
|
|
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
|
|
import org.briarproject.api.system.FileUtils;
|
|
|
|
class DesktopFileUtils implements FileUtils {
|
|
|
|
public long getTotalSpace(File f) throws IOException {
|
|
return f.getTotalSpace(); // Requires Java 1.6
|
|
}
|
|
|
|
public long getFreeSpace(File f) throws IOException {
|
|
return f.getUsableSpace(); // Requires Java 1.6
|
|
}
|
|
}
|