Functionality for extract urls from text files form a directory