Beware of using the List Files component in DS protocols

The List Files component allows you to specify a Directory Path and some filter to list all files of that type in a particular directory. The Directory Path parameter has the parameter type DirectoryType and when it is promoted to the protocol level the user is given a browse option to enter a path. The problem is, if such a protocol is run from the Discovery Studio client, the paths the user will be browsing and entering are paths/directories on the client machine but what List Files is going to use it as is a path on the Server machine. As long as the server is localhost, such a protocol will run properly, however, if the server is a remote machine, the protocol will likely not produce expected results. Therefore, if you are designing a protocol to work with both local and remote servers in DS, it is best not to use the List Files component with it's Directory Path parameter promoted to the protocol level.