Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(artifact/gitrepo): resolve symlink clean error (#994)
Bump `commons-io` to `2.11.0` which fixed the cleaning directory behavior when there is symlink. In the version `2.7.0` the delete directory will first check if the file exists with `Files.exists`, then issue a deleting with `File.deleteIfExists`. However when it's a symlink, the default behavior for `Files.exists` is to follow link, if the file/directory the symlink pointing to has been deleted, the symlink itself will not be deleted, this will causes error with `deleteDirectory` when there is still symlink left in the directory. In the newer version will add `NOFOLLOW_LINK` option on the `File.exists` check, therefore it will work as expected.
- Loading branch information