In Internal\Capabilities\Files\AmbientAuthority the links are not correctly handled. In most methods the link property of a path is verified after if it's a directory.
The problem is that a link can represent a directory, thus the link is not properly identified.
In the remove method there's no check if the path is a link or not. If the path is a link pointing to a directory, this results in the method to remove all the content inside the target directory. Instead it should delete the link itself.
In
Internal\Capabilities\Files\AmbientAuthoritythe links are not correctly handled. In most methods the link property of a path is verified after if it's a directory.The problem is that a link can represent a directory, thus the link is not properly identified.
In the
removemethod there's no check if the path is a link or not. If the path is a link pointing to a directory, this results in the method to remove all the content inside the target directory. Instead it should delete the link itself.