vsi_rmdir() deletes a directory object from the file system. On some
systems the directory must be empty before it can be deleted.
With recursive = TRUE, deletes a directory object and its content from
the file system.
This function goes through the GDAL VSIFileHandler virtualization and may
work on unusual filesystems such as in memory.
It is a wrapper for VSIRmdir() and VSIRmdirRecursive() in the GDAL
Common Portability Library.
Usage
vsi_rmdir(path, recursive = FALSE)
Value
0 on success or -1 on an error.
Arguments
path
Character string. The path to the directory to be deleted.
recursive
Logical scalar. TRUE to delete the directory and its
content. Defaults to FALSE.