Ejemplo n.º 1
0
def delete_recursively_v2(path):
  """Deletes everything under path recursively.

  Args:
    path: string, a path

  Raises:
    errors.OpError: If the operation fails.
  """
  pywrap_tensorflow.DeleteRecursively(compat.as_bytes(path))
Ejemplo n.º 2
0
def delete_recursively_v2(path):
    """Deletes everything under path recursively.

  Args:
    path: string, a path

  Raises:
    errors.OpError: If the operation fails.
  """
    with errors.raise_exception_on_not_ok_status() as status:
        pywrap_tensorflow.DeleteRecursively(compat.as_bytes(path), status)
Ejemplo n.º 3
0
def delete_recursively(dirname):
    """Deletes everything under dirname recursively.

  Args:
    dirname: string, a path to a directory

  Raises:
    errors.OpError: If the operation fails.
  """
    with errors.raise_exception_on_not_ok_status() as status:
        pywrap_tensorflow.DeleteRecursively(compat.as_bytes(dirname), status)
Ejemplo n.º 4
0
def delete_recursively(dirname):
    with errors.raise_exception_on_not_ok_status() as status:
        return pywrap_tensorflow.DeleteRecursively(compat.as_bytes(dirname),
                                                   status)