How to bypass java.nio.file.DirectoryNotEmptyException? -
this question has answer here:
- how delete folder files using java 18 answers
is there way bypass java.nio.file.directorynotemptyexception? want able delete folder content in it.
is there way bypass
java.nio.file.directorynotemptyexception
?
no. there no way bypass it.
on linux / unix, restriction imposed operating system. see man 2 rmdir
, , enotempty
error code.
also, try running rmdir
command prompt on non-empty directory, , see happens.
as other comments state, need empty directory first.
Comments
Post a Comment