I wish to write a python script (to be run in Linux) that one of its requirements is to remove a directory.
the problem is that the directory is very big and takes minutes to complete.
Problems:
- I don’t want the remove command to block script execution
- most importantly I want the remove command to allow the script to finish its execution and keep working even after the script is terminated
is it doable?
Thanks in advance
One thing that would satisfy those requirements would be a daemon. Fork and then return from the main process. That way the remove call can block as much as it likes.