feat: contextmenu copy folders toegevoegd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user