In a Java application, is there a way to atomically (with regards to other running processes) delete a non-empty directory?
The OS (Windows, Unix) doesn't support this operation, but what you can do is rename the directory or even move it away and then delete it later.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With