MCPcopy Create free account
hub / github.com/StackStorm/st2 / delete_dir

Method delete_dir

st2common/st2common/runners/parallel_ssh.py:214–225  ·  view source on GitHub ↗

Delete a dir on remote hosts. :param path: Path to remote dir that must be deleted. Must be shlex quoted. :type path: ``str`` :rtype path: ``dict`` of ``str`` to ``dict``

(self, path, force=False, timeout=None)

Source from the content-addressed store, hash-verified

212 return self._execute_in_pool(self._delete_file, **options)
213
214 def delete_dir(self, path, force=False, timeout=None):
215 """
216 Delete a dir on remote hosts.
217
218 :param path: Path to remote dir that must be deleted. Must be shlex quoted.
219 :type path: ``str``
220
221 :rtype path: ``dict`` of ``str`` to ``dict``
222 """
223
224 options = {"path": path, "force": force}
225 return self._execute_in_pool(self._delete_dir, **options)
226
227 def close(self):
228 """

Callers 3

test_delete_dirMethod · 0.95
mainFunction · 0.95
_delete_dirMethod · 0.45

Calls 1

_execute_in_poolMethod · 0.95

Tested by 2

test_delete_dirMethod · 0.76
mainFunction · 0.76