解决目录里有链接的bug

Signed-off-by: Meathill <meathill@gmail.com>