timit.py
def recursive_lowercase_rename(directory):
  """ Convert all directory names and filenames to lowercase.

  Args:
    directory: A string. The top-level directory.
  """
  for dirpath, dirnames, filenames in os.walk(directory, topdown=False):
    for name in dirnames + filenames:
      old_path = os.path.join(dirpath, name)
      new_path = os.path.join(dirpath, name.lower())
      os.rename(old_path, new_path)
 Convert all directory names and filenames to lowercase.

  Args:
    directory: A string. The top-level directory.
  
Convert all directory names and filenames to lowercase.
Convert all directory names and filenames to lowercase .
def recursive_lowercase_rename(directory):
  for dirpath, dirnames, filenames in os.walk(directory, topdown=False):
    for name in dirnames + filenames:
      old_path = os.path.join(dirpath, name)
      new_path = os.path.join(dirpath, name.lower())
      os.rename(old_path, new_path)
def recursive_lowercase_rename ( directory ) : for dirpath , dirnames , filenames in os . walk ( directory , topdown = False ) : for name in dirnames + filenames : old_path = os . path . join ( dirpath , name ) new_path = os . path . join ( dirpath , name . lower ( ) ) os . rename ( old_path , new_path )
Convert all directory names and filenames to lowercase.
Convert all directory names and filenames to lowercase .
""" Convert all directory names and filenames to lowercase.

  Args:
    directory: A string. The top-level directory.
  """
directory
A string. The top-level directory.
A string . The top - level directory .