Lines Matching refs:link2file
42 final static File link2file = new File(top, "link2file");
56 // link2link2file -> link2file -> foofile
63 mklink(link2file, file);
64 mklink(link2link2file, link2file);
82 if (link2file != null)
83 Files.deleteIfExists(link2file.toPath());
161 assertTrue(isSymLink(link2file));
172 assertFalse(link2file.createNewFile());
183 assertFalse(link2file.mkdir());
200 mklink(link, link2file);
203 assertTrue(link2file.exists());
227 assertTrue(link2file.renameTo(newlink));
231 assertTrue(!isSymLink(link2file));
233 newlink.renameTo(link2file); // restore link
265 assertTrue(link2file.list() == null);
275 assertTrue(link2file.isFile());
289 assertTrue(link2file.isHidden());
295 assertFalse(link2file.isHidden());
304 assertTrue(link2file.length() == len);
318 assertTrue(lastModifiedOfSymLink(link2file) != lastModified);
320 assertTrue(link2file.lastModified() == lastModified);
336 assertTrue(link2file.canRead());
337 assertTrue(link2file.canWrite());
343 assertFalse(link2file.canWrite());
348 assertTrue(link2file.canWrite());
351 assertTrue(link2file.setReadOnly()); // make read only
353 assertFalse(link2file.canWrite());
358 assertTrue(link2file.canWrite());