[9] RFC on 8073061: Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable

Francis Galiegue fgaliegue at gmail.com
Wed Feb 18 01:29:38 UTC 2015


On Wed, Feb 18, 2015 at 2:24 AM, Francis Galiegue <fgaliegue at gmail.com> wrote:
[...]
>
> * try and open(2) the source for read; if EACCESS, AccessDeniedException;
> * stat(2), or lstat(2) (if LinkOption.NOFOLLOW_LINKS is specified) the
> source; if directory, try and rmdir(2); if it fails,
> DirectoryNotEmptyException; if not directory, attempt and unlink(2);
>

Uh... The destination, obviously; not the source :/

Sorry about the keyboard slip...


More information about the nio-dev mailing list