How to bypass java.nio.file.DirectoryNotEmptyException? -


this question has answer here:

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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -