Lines Matching defs:dir
57 private static Path generatePath(String prefix, String suffix, Path dir) {
60 Path name = dir.getFileSystem().getPath(prefix + Long.toString(n) + suffix);
64 return dir.resolve(name);
78 * temporary directory if dir is {@code null}).
80 private static Path create(Path dir,
91 if (dir == null)
92 dir = tmpdir;
96 if (isPosix && (dir.getFileSystem() == FileSystems.getDefault())) {
127 f = generatePath(prefix, suffix, dir);
142 if (dir == tmpdir && sm != null)
153 * temporary directory if dir is {@code null}.
155 static Path createTempFile(Path dir,
161 return create(dir, prefix, suffix, false, attrs);
166 * temporary directory if dir is {@code null}.
168 static Path createTempDirectory(Path dir,
173 return create(dir, prefix, null, true, attrs);