PetscRMTree#

Recursively delete a directory tree on the current MPI process

Synopsis#

#if defined(PETSC_HAVE_DIRECT_H)
PetscErrorCode PetscRMTree(const char dir[])

Not Collective

Input Parameter#

  • dir - path of the directory to delete

Note#

All files and subdirectories rooted at dir, along with dir itself, are removed. Returns successfully if dir does not exist or is empty.

See Also#

PetscMkdir(), PetscTestDirectory()

Level#

developer

Location#

src/sys/fileio/fdir.c

Examples#

src/ksp/ksp/tutorials/ex76.c
src/ksp/ksp/tutorials/ex52.c


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages