1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00
Zachary Turner 7dad21d20f [Support] Add llvm::sys::fs::remove_directories.
We already have a function create_directories() which can create
an entire tree, and remove() which can remove an empty directory,
but we do not have remove_directories() which can remove an entire
tree.  This patch adds such a function.

Because removing a directory tree can have dangerous consequences
when the tree contains a directory symlink, the patch here updates
the existing directory_iterator construct to optionally not follow
symlinks (previously it would always follow symlinks).  The delete
algorithm uses this flag so that for symlinks, only the links are
removed, and not the targets.

On Windows this is implemented with SHFileOperation, which also
does not recurse into symbolic links or junctions.

Differential Revision: https://reviews.llvm.org/D30676

llvm-svn: 297314
2017-03-08 22:49:32 +00:00
..
2015-06-19 01:53:21 +00:00
2016-11-01 07:52:10 +00:00
2016-04-18 09:17:29 +00:00
2016-12-27 11:07:53 +00:00
2014-12-04 16:59:36 +00:00
2014-12-04 16:59:36 +00:00
2016-09-27 15:45:57 +00:00
2016-04-18 09:17:29 +00:00