Home
last modified time | relevance | path

Searched refs:safePath (Results 1 – 25 of 68) sorted by relevance

123

/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java295 static void clearDirectory(SafePath safePath) throws IOException {
299 static SafePath toRealPath(SafePath safePath) throws Exception {
315 public static long getFileSize(SafePath safePath) throws IOException {
316 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
319 static SafePath createDirectories(SafePath safePath) throws IOException {
324 public static boolean exists(SafePath safePath) throws IOException {
325 return doPrivilegedIOWithReturn(() -> Files.exists(safePath.toPath()));
328 public static boolean isDirectory(SafePath safePath) throws IOException {
336 static boolean isWritable(SafePath safePath) throws IOException {
340 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java117 private static SafePath createRealBasePath(SafePath safePath) throws Exception { in createRealBasePath() argument
118 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
119 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
120 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
122 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
124 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java295 static void clearDirectory(SafePath safePath) throws IOException {
299 static SafePath toRealPath(SafePath safePath) throws Exception {
315 public static long getFileSize(SafePath safePath) throws IOException {
316 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
319 static SafePath createDirectories(SafePath safePath) throws IOException {
324 public static boolean exists(SafePath safePath) throws IOException {
325 return doPrivilegedIOWithReturn(() -> Files.exists(safePath.toPath()));
328 public static boolean isDirectory(SafePath safePath) throws IOException {
336 static boolean isWritable(SafePath safePath) throws IOException {
340 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java117 private static SafePath createRealBasePath(SafePath safePath) throws Exception { in createRealBasePath() argument
118 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
119 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
120 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
122 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
124 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/jdk.jfr/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java327 static void clearDirectory(SafePath safePath) throws IOException {
331 static SafePath toRealPath(SafePath safePath) throws Exception {
347 public static long getFileSize(SafePath safePath) throws IOException {
348 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
351 static SafePath createDirectories(SafePath safePath) throws IOException {
356 public static boolean exists(SafePath safePath) throws IOException {
357 return doPrivilegedIOWithReturn(() -> Files.exists(safePath.toPath()));
360 public static boolean isDirectory(SafePath safePath) throws IOException {
368 static boolean isWritable(SafePath safePath) throws IOException {
372 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java117 private static SafePath createRealBasePath(SafePath safePath) throws Exception { in createRealBasePath() argument
118 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
119 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
120 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
122 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
124 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/jdk.jfr/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java329 static void clearDirectory(SafePath safePath) throws IOException {
333 static SafePath toRealPath(SafePath safePath) throws Exception {
349 public static long getFileSize(SafePath safePath) throws IOException {
350 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
353 static SafePath createDirectories(SafePath safePath) throws IOException {
358 public static boolean exists(SafePath safePath) throws IOException {
359 return doPrivilegedIOWithReturn(() -> Files.exists(safePath.toPath()));
362 public static boolean isDirectory(SafePath safePath) throws IOException {
370 static boolean isWritable(SafePath safePath) throws IOException {
374 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java117 private static SafePath createRealBasePath(SafePath safePath) throws Exception { in createRealBasePath() argument
118 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
119 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
120 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
122 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
124 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/jdk.jfr/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java327 static void clearDirectory(SafePath safePath) throws IOException {
331 static SafePath toRealPath(SafePath safePath) throws Exception {
347 public static long getFileSize(SafePath safePath) throws IOException {
348 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
351 static SafePath createDirectories(SafePath safePath) throws IOException {
356 public static boolean exists(SafePath safePath) throws IOException {
357 return doPrivilegedIOWithReturn(() -> Files.exists(safePath.toPath()));
360 public static boolean isDirectory(SafePath safePath) throws IOException {
368 static boolean isWritable(SafePath safePath) throws IOException {
372 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java117 private static SafePath createRealBasePath(SafePath safePath) throws Exception { in createRealBasePath() argument
118 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
119 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
120 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
122 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
124 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/jdk.jfr/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java329 static void clearDirectory(SafePath safePath) throws IOException {
333 static SafePath toRealPath(SafePath safePath) throws Exception {
349 public static long getFileSize(SafePath safePath) throws IOException {
350 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
353 static SafePath createDirectories(SafePath safePath) throws IOException {
358 public static boolean exists(SafePath safePath) throws IOException {
359 return doPrivilegedIOWithReturn(() -> Files.exists(safePath.toPath()));
362 public static boolean isDirectory(SafePath safePath) throws IOException {
370 static boolean isWritable(SafePath safePath) throws IOException {
374 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java117 private static SafePath createRealBasePath(SafePath safePath) throws Exception { in createRealBasePath() argument
118 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
119 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
120 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
122 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
124 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/src/jdk.jfr/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java357 static void clearDirectory(SafePath safePath) throws IOException {
361 static SafePath toRealPath(SafePath safePath) throws IOException {
377 public static long getFileSize(SafePath safePath) throws IOException {
378 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
381 static SafePath createDirectories(SafePath safePath) throws IOException {
386 public static boolean exists(SafePath safePath) throws IOException {
388 return doPrivilegedIOWithReturn(() -> safePath.toPath().toFile().exists());
391 public static boolean isDirectory(SafePath safePath) throws IOException {
399 static boolean isWritable(SafePath safePath) throws IOException {
403 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java122 private static SafePath createRealBasePath(SafePath safePath) throws IOException { in createRealBasePath() argument
123 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
124 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
125 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
127 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
129 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/src/jdk.jfr/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java355 static void clearDirectory(SafePath safePath) throws IOException {
359 static SafePath toRealPath(SafePath safePath) throws IOException {
375 public static long getFileSize(SafePath safePath) throws IOException {
376 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
379 static SafePath createDirectories(SafePath safePath) throws IOException {
384 public static boolean exists(SafePath safePath) throws IOException {
386 return doPrivilegedIOWithReturn(() -> safePath.toPath().toFile().exists());
389 public static boolean isDirectory(SafePath safePath) throws IOException {
397 static boolean isWritable(SafePath safePath) throws IOException {
401 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java119 private static SafePath createRealBasePath(SafePath safePath) throws IOException { in createRealBasePath() argument
120 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
121 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
122 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
124 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
126 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/jdk.jfr/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java355 static void clearDirectory(SafePath safePath) throws IOException {
359 static SafePath toRealPath(SafePath safePath) throws IOException {
375 public static long getFileSize(SafePath safePath) throws IOException {
376 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
379 static SafePath createDirectories(SafePath safePath) throws IOException {
384 public static boolean exists(SafePath safePath) throws IOException {
386 return doPrivilegedIOWithReturn(() -> safePath.toPath().toFile().exists());
389 public static boolean isDirectory(SafePath safePath) throws IOException {
397 static boolean isWritable(SafePath safePath) throws IOException {
401 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java127 private static SafePath createRealBasePath(SafePath safePath) throws IOException { in createRealBasePath() argument
128 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
129 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
130 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
132 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
134 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/src/jdk.jfr/share/classes/jdk/jfr/internal/
H A DSecuritySupport.java364 static void clearDirectory(SafePath safePath) throws IOException {
368 static SafePath toRealPath(SafePath safePath) throws IOException {
384 public static long getFileSize(SafePath safePath) throws IOException {
385 return doPrivilegedIOWithReturn(() -> Files.size(safePath.toPath()));
388 static SafePath createDirectories(SafePath safePath) throws IOException {
393 public static boolean exists(SafePath safePath) throws IOException {
395 return doPrivilegedIOWithReturn(() -> safePath.toPath().toFile().exists());
398 public static boolean isDirectory(SafePath safePath) throws IOException {
406 static boolean isWritable(SafePath safePath) throws IOException {
410 static void deleteOnExit(SafePath safePath) {
[all …]
H A DRepository.java128 private static SafePath createRealBasePath(SafePath safePath) throws IOException { in createRealBasePath() argument
129 if (SecuritySupport.exists(safePath)) { in createRealBasePath()
130 if (!SecuritySupport.isWritable(safePath)) { in createRealBasePath()
131 …throw new IOException("JFR repository directory (" + safePath.toString() + ") exists, but isn't wr… in createRealBasePath()
133 return SecuritySupport.toRealPath(safePath); in createRealBasePath()
135 SafePath p = SecuritySupport.createDirectories(safePath); in createRealBasePath()
/dports/devel/RStudio/rstudio-2021.09.1-372/src/node/desktop/src/core/
H A Dfile-path.ts208 let safePath = revertToPath;
209 if (!fs.existsSync(safePath.path)) {
210 safePath = userHomePath();
213 const error = safePath.makeCurrentPath();
218 return safePath;
235 let safePath = revertToPath;
236 if (! await FilePath.existsAsync(safePath.path)) {
237 safePath = userHomePath();
240 const error = safePath.makeCurrentPath();
245 return safePath;
/dports/audio/flacon/flacon-8.2.0/tests/
H A Dinittestcase.cpp137 static QString safePath(const QString &path) in safePath() function
157 .arg(safePath(test)) in dir()
158 .arg(safePath(subtest))); in dir()
171 .arg(safePath(test)) in sourceDir()
172 .arg(safePath(subtest))); in sourceDir()
/dports/net/linphone/linphoneqt-4.1.1/src/utils/
H A DUtils.cpp60 QString safePath = QStringLiteral("%1 (%3).%4").arg(prefix).arg(i).arg(ext); in getSafeFilePath() local
61 if (!QFileInfo::exists(safePath)) in getSafeFilePath()
62 return safePath; in getSafeFilePath()
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/jdk.jfr/share/classes/jdk/jfr/internal/dcmd/
H A DDCmdStop.java64 SafePath safePath = null; in execute() local
70 safePath = resolvePath(null, filename); in execute()
77 reportOperationComplete("Stopped", recording.getName(), safePath); in execute()
/dports/java/jflex/jflex-1.8.1/src/test/java/jflex/testing/
H A DTestFileUtils.java59 private static String resolveInternal(String safeBazelPackage, String safePath) { in resolveInternal() argument
65 return osPath + File.separator + safePath; in resolveInternal()
67 return safePath; in resolveInternal()

123