Path.glob
Path.glob(...)Description
Documentation for Path.glob.
Real-World Examples
Practical code examples showing how Path.glob is used in real projects.
"""Get set of repo full names already cached on disk."""
cached = set()
if not output_dir.exists():
return cached
for filepath in output_dir.glob("*.lua"):
if filepath.name.endswith(".meta"):
continue
# Filename format: owner__name.lua
stem = filepath.stem
if "__" in stem:
owner, name = stem.split("__", 1)
cached.add(f"{owner}/{name}")
return cached
def fetch_configs(
self,
query: str = "filename:init.lua path:nvim",
max_repos: int = 500,
progress_callback=None,
) -> Iterator[ConfigFile]:
"""
Fetch Neovim configurations from GitHub.
This is an alias for search_configs() for backwards compatibility.
- a rust binary cluster
- a gllvm c binary cluster
"""
import glob
import json
import logging
import os
import time
from assemblage.api import *
from assemblage.build_method import cmd_with_output
time_now = int(time.time())
start = time_now - time_now % 86400
querylap = 14400
def get_build_system(files):
"""Analyze build tool from file list"""
build_systems = {"make": ["makefile"],
"cmake": ["cmakelists.txt"],
"cargo": ["Cargo.toml"]
}
build_tools_list = []