mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FileUtil: small method for generating random paths.
This commit is contained in:
@@ -33,10 +33,7 @@ import org.jetbrains.annotations.TestOnly;
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Method;
|
||||
import java.nio.channels.FileChannel;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@SuppressWarnings({"UtilityClassWithoutPrivateConstructor"})
|
||||
@@ -1161,4 +1158,8 @@ public class FileUtil {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static String generateRandomTemporaryPath() {
|
||||
return getTempDirectory() + "/" + UUID.randomUUID().toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user