iterating through remote file path