1. Add config parameter localdir
2. Get all the http path for the files, remember to user .path to create local files because of the prefix of "/" of each filename.