Function - rmtree

Contents

Function - rmtree#

openfl.utilities.utils.rmtree(path, ignore_errors=False)[source]#

Remove a directory tree.

This function removes a directory tree. If a file in the directory tree is read-only, its read-only attribute is cleared before it is removed.

Parameters:
  • path (str) – The path to the directory tree to remove.

  • ignore_errors (bool, optional) – Whether to ignore errors. Defaults to False.

Returns:

The path to the removed directory tree.

Return type:

str