add function HasSubDir