def get_recursive_filelist(args):
files = []<EOL>for arg in args:<EOL><INDENT>if os.path.isfile(arg):<EOL><INDENT>files.append(arg)<EOL>continue<EOL><DEDENT>if os.path.isdir(arg):<EOL><INDENT>newfiles = listFiles(arg, recurse=<NUM_LIT:1>, return_folders=<NUM_LIT:1>)<EOL>files.extend(newfiles)<EOL><DEDENT><DEDENT>return [f for f in files if not os.path.islink(f)]<EOL>
Recurs all the files and dirs in *args* ignoring symbolic links
and return the files as a list of strings