@Test public void testApplicationFileIsDirectory() throws Exception { assertFalse(getApplicationFile(Path.fromString("vespa-services.xml")).isDirectory()); assertTrue(getApplicationFile(Path.fromString("searchdefinitions")).isDirectory()); assertFalse(getApplicationFile(Path.fromString("searchdefinitions/sock.sd")).isDirectory()); assertFalse(getApplicationFile(Path.fromString("doesnotexist")).isDirectory()); }
public abstract boolean isDirectory();
ApplicationFile implements Comparable<ApplicationFile> { public abstract boolean isDirectory(); }
ApplicationFile implements Comparable<ApplicationFile> { public abstract boolean isDirectory(); protected  ApplicationFile(Path path); }
ApplicationFile implements Comparable<ApplicationFile> { public abstract boolean isDirectory(); protected  ApplicationFile(Path path); abstract boolean isDirectory(); abstract boolean exists(); abstract Reader createReader(); abstract InputStream createInputStream(); abstract ApplicationFile createDirectory(); abstract ApplicationFile writeFile(Reader input); abstract ApplicationFile appendFile(String value); List<ApplicationFile> listFiles(); abstract List<ApplicationFile> listFiles(PathFilter filter); List<ApplicationFile> listFiles(boolean recurse); abstract ApplicationFile delete(); Path getPath(); @Override String toString(); @Override boolean equals(Object other); abstract MetaData getMetaData(); }
ApplicationFile implements Comparable<ApplicationFile> { public abstract boolean isDirectory(); protected  ApplicationFile(Path path); abstract boolean isDirectory(); abstract boolean exists(); abstract Reader createReader(); abstract InputStream createInputStream(); abstract ApplicationFile createDirectory(); abstract ApplicationFile writeFile(Reader input); abstract ApplicationFile appendFile(String value); List<ApplicationFile> listFiles(); abstract List<ApplicationFile> listFiles(PathFilter filter); List<ApplicationFile> listFiles(boolean recurse); abstract ApplicationFile delete(); Path getPath(); @Override String toString(); @Override boolean equals(Object other); abstract MetaData getMetaData(); static final String ContentStatusNew; static final String ContentStatusChanged; static final String ContentStatusDeleted; }