Bug in Files.copy() where the source Path is a directory... It _is_ a bug, right?

Alan Bateman Alan.Bateman at oracle.com
Thu Dec 11 11:51:08 UTC 2014


On 10/12/2014 22:06, Colin Decker wrote:
> :
>
> On a related note, the fact that SecureDirectoryStream has neither a 
> copy() method nor a method for creating a directory makes me a little 
> sad, as it makes it impossible to implement a recursive copy that has 
> similar security guarantees.
I'd like to see a createDirectory there too, the reason it didn't make 
it in originally was due to lack of support for mkdirat. I'm not sure 
how copy would fit here because it wouldn't be an atomic operation.

-Alan


More information about the nio-dev mailing list