Closed sormuras closed 6 years ago
That's more or less what you have in FileHelper https://github.com/forax/pro/blob/master/src/main/java/com.github.forax.pro.helper/com/github/forax/pro/helper/FileHelper.java#L34 https://github.com/forax/pro/blob/master/src/main/java/com.github.forax.pro.helper/com/github/forax/pro/helper/FileHelper.java#L143
The later one can be used to copy files, like that: https://github.com/forax/pro/blob/master/src/main/java/com.github.forax.pro.bootstrap/com/github/forax/pro/bootstrap/Bootstrap.java#L126
So perhaps, a simplified version could be created in a new class of com.github.forax.pro. I'm reluctant to put them directly in Pro and would prefer people that does file copy/etc to at least import a different class.
I close this issue as i still think that such helper methods should be in FileHelper and not in Pro.
How about adding more commonly used file tools to
Pro
that are not part of the JDKFiles
support class?deleteTree(Path root)
copyTree(Path source, Path target)