Introduce secure copy, recursive copy, and move functionality#486
Introduce secure copy, recursive copy, and move functionality#486dmlloyd wants to merge 1 commit intosmallrye:mainfrom
Conversation
5db7586 to
82cd9ea
Compare
|
One issue I struggled a little bit with is in regards to one detail of copying. Most copy utilities will look at your destination path, and if it's a directory, will copy the source file/directory into the target directory under the same name as the original. If it's a file that exists, it will attempt to replace that file with the copy (or fail if you don't have replacement enabled). The JDK however behaves differently with its (strictly non-recursive) One other little detail is that on UNIX-like systems, if your destination path ends with The proposed API follows the JDK behavior, not because I think it's better, but because with the restriction on |
0a0940c to
80d5b70
Compare
80d5b70 to
c3060fe
Compare
Fixes #484.
This is a draft to allow review of the API and basic implementation as I write tests. Based on #482.
copy(SDS input)copy(Path input only)copyRecursively(SDS input)copyRecursively(Path input only)move(SDS input)move(Path input only)copyEvenIfInsecure(Path input only)copyRecursivelyEvenIfInsecure(Path input only)moveEvenIfInsecure(Path input only)