'Non-blocking file operations in spring-webflux

I need to write some code to manage files for a spring-webflux service. The first instinct is to use File/Files which work fine in a regular app, but they're blocking.

So, I googled most of all criterias I imagined but all results were mostly related to uploading/downloading files.

My question is - is there any way to manage files (delete,copy,move) in a non-blocking fashion under spring-webflux? Even a 3rd party lib?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source