Lines Matching defs:dir
37 final static File top = new File(System.getProperty("test.dir", "."));
45 final static File dir = new File(top, "foodir");
66 // link2link2dir -> link2dir -> dir
67 assertTrue(dir.mkdir());
68 mklink(link2dir, dir);
86 if (dir != null)
87 dir.delete();
124 * "dir" exists.
126 static boolean supportsSymLinks(File dir) {
127 Path link = dir.toPath().resolve("link");
128 Path target = dir.toPath().resolve("target");
163 assertTrue(dir.isDirectory());
174 assertFalse(dir.createNewFile());
185 assertFalse(dir.mkdir());
205 mklink(link, dir);
208 assertTrue(dir.exists());
238 assertTrue(dir.exists());
248 File entry = new File(dir, name);
250 assertTrue(dir.list().length == 0); // directory should be empty
255 assertTrue(dir.list().length == 1);
256 assertTrue(dir.list()[0].equals(name));
278 assertTrue(dir.isDirectory());
324 origLastModified = dir.lastModified();
326 dir.setLastModified(0L);
327 assertTrue(dir.lastModified() == 0L);
330 dir.setLastModified(origLastModified);