Package com._1c.g5.v8.bm.core
Class TestFileUtil
- java.lang.Object
-
- com._1c.g5.v8.bm.core.TestFileUtil
-
public final class TestFileUtil extends Object
Test file utitlities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyDirectory(Path sourcePath, Path targetPath)
Copies a directory along with all its contents to a target directory.static void
deleteDirectory(Path path)
Deletes directory along with all its contents.
-
-
-
Method Detail
-
deleteDirectory
public static void deleteDirectory(Path path) throws IOException
Deletes directory along with all its contents.- Parameters:
path
- The directory path. May not benull
;- Throws:
IOException
- if any I/O error occurs.
-
copyDirectory
public static void copyDirectory(Path sourcePath, Path targetPath) throws IOException
Copies a directory along with all its contents to a target directory.- Parameters:
sourcePath
- The path to the directory to copy. May not benull
.targetPath
- The path to the target directory. May not benull
.- Throws:
IOException
- if any I/O error occurs.
-
-