hpcflow.sdk.persistence.base.remove_dir#

hpcflow.sdk.persistence.base.remove_dir(dir_path)#

Try very hard to delete a directory.

Dropbox (on Windows, at least) seems to try to re-sync files if the parent directory is deleted soon after creation, which is the case on a failed workflow creation (e.g. missing inputs), so in addition to catching PermissionErrors generated when Dropbox has a lock on files, we repeatedly try deleting the directory tree.

Parameters:

dir_path (Path) –

Return type:

None