def get_recursive_filelist(args):
 files = []
 for arg in args:
  if os.path.isfile(arg):
   files.append(arg)
   continue
  if os.path.isdir(arg):
   newfiles = listFiles(arg, recurse=1, return_folders=1)
   files.extend(newfiles)
 return [f for f in files if (not os.path.islink(f))]

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