mitogen icon indicating copy to clipboard operation
mitogen copied to clipboard

Recreate remote temp dir if it no longer exists

Open markafarrell opened this issue 1 year ago • 1 comments

Previously we do not check if self.good_temp_dir is actually good before using it.

If the path that self.good_temp_dir has been removed then we need to re-create it before trying to use that directory.

ansible_mitogen.target.is_good_temp_dir(self.good_temp_dir) ensure that that is the case.

Fixes #1061

markafarrell avatar Apr 12 '24 06:04 markafarrell

Notes to myself

  • ansible_mitogen.target.is_good_temp_dir(path) has a misleading name. It doesn't just do checks on an existing dir, it attempts to create the path.

moreati avatar Apr 21 '24 10:04 moreati