kazurayam / chromedriverfactory

A Java library that enables you to launch Selenium ChromeDriver using an existing user Profile. That let you to carry cookies over multiple HTTP sessions via user Profile.
0 stars 0 forks source link

get rid of dependency to Apache Commons IO #10

Closed kazurayam closed 2 years ago

kazurayam commented 2 years ago

https://github.com/kazurayam/webdriverfactory/blob/0.2.0-SNAPSHOT/src/main/groovy/com/kazurayam/webdriverfactory/chrome/ChromeDriverFactoryImpl.groovy has this code

import org.apache.commons.io.FileUtils
...
            FileUtils.copyDirectory(
                    originalProfileDirectory.toFile(),
                    destinationDirectory.toFile())

This makes this library dependent on the Apache Commons IO.

I would rather like to re-invent the wheel to copy a directory to other dir recursively