def get_files(dirname):
  '''recursion rockz'''
  all_files = []
  os.chdir(dirname)
  for fn in os.listdir(os.path.abspath(dirname)):
    fn = os.path.abspath(fn)
    if os.path.isdir(fn):
      all_files += get_files(fn)
    else:
      all_files.append(fn)
  os.chdir('../')
  return all_files
def get_files ( dirname ) : all_files = [ ] os . chdir ( dirname ) for fn in os . listdir ( os . path . abspath ( dirname ) ) : fn = os . path . abspath ( fn ) if os . path . isdir ( fn ) : all_files += get_files ( fn ) else : all_files . append ( fn ) os . chdir ( '../' ) return all_files
recursion rockz