Lines Matching defs:dir
48 static void testReadWrite(Path dir) throws IOException {
49 Path file = dir.resolve("foo");
117 static void testCreateFile(Path dir) throws IOException {
118 UserPrincipal user = Files.getOwner(dir);
123 Path file = dir.resolve("gus");
137 Path subdir = dir.resolve("stuff");
155 Path dir = Paths.get("./work" + new Random().nextInt());
156 Files.createDirectory(dir);
158 if (!Files.getFileStore(dir).supportsFileAttributeView("acl")) {
162 testReadWrite(dir);
166 testCreateFile(dir);
169 TestUtil.removeAll(dir);