code: def paths_in_directory(input_directory):
      
      paths = []
      for base_path, directories, filenames in os.walk(input_directory):
          relative_path = os.path.relpath(base_path, input_directory)
          path_components = relative_path.split(os.sep)
          if path_components[0] == ".":
              path_components = path_components[1:]
          if path_components and path_components[0].startswith("."):
              # hidden dir
              continue
          path_components = filter(bool, path_components)  # remove empty components
          for filename in filenames:
              if filename.startswith("."):
                  # hidden file
                  continue
              paths.append(path_components + [filename])
      return paths
docs: Generate a list of all files in input_directory, each as a list containing path components.