Lines Matching defs:dir
46 File absDir = createDir(new File("abs.dir").getAbsoluteFile(), "d.A");
47 File relDir = createDir(new File("rel.dir"), "d.R");
122 File createDir(File dir, String... entries) throws Exception {
123 if (!dir.mkdirs())
124 throw new Exception("cannot create directories " + dir);
126 writeFile(new File(dir, getPathForDirEntry(e)), getBodyForEntry(e));
128 return dir;
191 Set<File> getFiles(File dir, String... paths) {
194 files.add(new File(dir, p));
199 Set<File> findFiles(File dir) {
201 findFiles(dir, files);
205 void findFiles(File dir, Set<File> files) {
206 for (File f: dir.listFiles()) {