Fix the issue of GetTemporaryFiles method of FileManager.