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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -