mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Removable drive finders for Windows, Mac and Linux (untested).
This commit is contained in:
29
test/net/sf/briar/plugins/file/TestFilePlugin.java
Normal file
29
test/net/sf/briar/plugins/file/TestFilePlugin.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package net.sf.briar.plugins.file;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class TestFilePlugin extends FilePlugin {
|
||||
|
||||
private final File outputDir;
|
||||
private final long capacity;
|
||||
|
||||
public TestFilePlugin(File outputDir, long capacity) {
|
||||
this.outputDir = outputDir;
|
||||
this.capacity = capacity;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected File chooseOutputDirectory() {
|
||||
return outputDir;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void writerFinished(File f) {
|
||||
// Nothing to do
|
||||
}
|
||||
|
||||
@Override
|
||||
protected long getCapacity(String path) {
|
||||
return capacity;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user