Update

Delete listFilesPattern() function and add default parameter to the
listFiles() function.