public class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteRecursively(File file)
Delete a file or a directory recursively.
|
static boolean |
isPrivate(java.nio.file.Path path) |
static boolean |
isWindows()
Determine if Java is running on a windows OS
|
static void |
setPrivate(java.nio.file.Path path) |
static void |
setPublic(java.nio.file.Path path) |
public static void deleteRecursively(File file) throws IOException
IOExceptionpublic static boolean isWindows()
public static boolean isPrivate(java.nio.file.Path path) throws IOException
path - The path to a Windows file or directory.IOExceptionpublic static void setPrivate(java.nio.file.Path path) throws IOException
path - Remove "Everyone" from this path's Windows ACL permissions.IOExceptionpublic static void setPublic(java.nio.file.Path path) throws IOException
path - Add "Everyone" with read enabled to this path's Windows ACL permissions.IOExceptionCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.