code: def directory_to_pif(directory, **kwargs):
      
  
      # Get the files
      files = [os.path.join(directory, f) for f in os.listdir(directory)
               if os.path.isfile(os.path.join(directory, f))]
  
      # Run the pif
      return files_to_pif(files, **kwargs)
docs: Convert a directory to a pif
      :param directory: Directory to convert to a pif
      :param kwargs: any additional keyword arguments. (See `files_to_pif`)
      :return: the created pif