public class Files2 extends Object
| Constructor and Description |
|---|
Files2() |
| Modifier and Type | Method and Description |
|---|---|
static void |
chmodReadExecute(Path path) |
static void |
chmodReadOnly(Path path) |
static void |
chmodReadWrite(Path path) |
static Path |
copyArtifactToDirectory(Path sourceDir,
String artifactId,
Path dest) |
static void |
copyDirectoryContent(Path fromDir,
Path toDir) |
static Path |
copyToDirectory(Path source,
Path dest) |
static void |
deleteDirectory(Path dir) |
static void |
dump(Path path) |
static Path |
findArtifact(Path source,
String artifactId) |
static Path |
findArtifact(Path source,
String artifactId,
String type) |
static Path |
findUniqueFolderBeginningWith(Path source,
String pattern) |
static void |
unzip(Path zipFile,
Path destDir) |
static void |
unzip(String zipFilename,
String destDirname)
Unzips the specified zip file to the specified destination directory.
|
public static void deleteDirectory(Path dir) throws IOException
IOExceptionpublic static void chmodReadOnly(Path path) throws IOException
IOExceptionpublic static void chmodReadExecute(Path path) throws IOException
IOExceptionpublic static void chmodReadWrite(Path path) throws IOException
IOExceptionpublic static void unzip(String zipFilename, String destDirname) throws IOException
zipFilename - the name of the zip file to extractdestDirname - the directory to unzip toIOExceptionpublic static void unzip(Path zipFile, Path destDir) throws IOException
IOExceptionpublic static void dump(Path path) throws IOException
IOExceptionpublic static void copyDirectoryContent(Path fromDir, Path toDir) throws IOException
IOException@Nonnull public static Path copyToDirectory(@Nonnull Path source, @Nonnull Path dest) throws IOException
IOException@Nonnull public static Path copyArtifactToDirectory(@Nonnull Path sourceDir, @Nonnull String artifactId, @Nonnull Path dest) throws IOException
IOException@Nonnull public static Path findArtifact(@Nonnull Path source, @Nonnull String artifactId) throws IOException
IOException@Nonnull public static Path findUniqueFolderBeginningWith(@Nonnull Path source, @Nullable String pattern) throws IOException, NoSuchElementException, IllegalStateException
@Nonnull public static Path findArtifact(@Nonnull Path source, @Nonnull String artifactId, @Nonnull String type) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.