Merge fileList and directoryList into filesAndDirectories in GetDirectoryCall.