MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / copyDir

Method copyDir

java/src/org/openqa/selenium/io/FileHandler.java:117–131  ·  view source on GitHub ↗
(File from, File to)

Source from the content-addressed store, hash-verified

115 }
116
117 private static void copyDir(File from, File to) throws IOException {
118 // Create the target directory.
119 createDir(to);
120
121 // List children.
122 String[] children = from.list();
123 if (children == null) {
124 throw new IOException("Could not copy directory " + from.getPath());
125 }
126 for (String child : children) {
127 if (!".parentlock".equals(child) && !"parent.lock".equals(child)) {
128 copy(new File(from, child), new File(to, child));
129 }
130 }
131 }
132
133 private static void copyFile(File from, File to) throws IOException {
134 try (OutputStream out = new FileOutputStream(to)) {

Callers 3

copyMethod · 0.95
buildProfileFunction · 0.80
io_test.jsFile · 0.80

Calls 5

createDirMethod · 0.95
copyMethod · 0.95
listMethod · 0.65
getPathMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected