feat: contextmenu copy folders toegevoegd

This commit is contained in:
kodi
2026-03-14 10:34:31 +01:00
parent 8908b1dce9
commit 4e1288fe47
16 changed files with 440 additions and 60 deletions
@@ -120,6 +120,9 @@ class FilesystemAdapter:
on_progress(out_f.tell())
shutil.copystat(src, dst, follow_symlinks=False)
def copy_directory(self, source: str, destination: str) -> None:
shutil.copytree(source, destination, symlinks=True, copy_function=shutil.copy2)
def read_text_preview(self, path: Path, max_bytes: int, encoding: str = "utf-8") -> dict:
size = int(path.stat().st_size)
limit = max_bytes + 1