Even if the file or directory that symlink points not exist, Remove()
and RemoveAll() should delete symlink file.
Note that bf::remove() and bf::remove_all() delete symbolic link itself.
Change-Id: I37fbeea897dc12f3b355e24b8763abaa304c5a02
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
}
bool RemoveAll(const bf::path& path) {
- if (!exists(path))
+ if (!exists(path) && !bf::is_symlink(bf::symlink_status(path)))
return true;
bs::error_code error;
}
bool Remove(const bf::path& path) {
- if (!exists(path))
+ if (!exists(path) && !bf::is_symlink(bf::symlink_status(path)))
return true;
bs::error_code error;