From f9001ecb9dbe752ef42bc7b1c6ab9cda9b1dd69f Mon Sep 17 00:00:00 2001 From: furtest Date: Wed, 31 Dec 2025 00:03:17 +0100 Subject: [PATCH] Adds usage of the paths manager --- src/unisync/main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/unisync/main.py b/src/unisync/main.py index 98c3d59..e957c09 100644 --- a/src/unisync/main.py +++ b/src/unisync/main.py @@ -5,6 +5,8 @@ import os from argparser import create_argparser from config import RootsConfig, ServerConfig, Config, load_config from synchroniser import Synchroniser +from pathlib import Path, PosixPath +from paths import * def main(): parser = create_argparser() @@ -29,14 +31,19 @@ def main(): config.unison.values ) + paths_manager = PathsManager(Path(config.roots.local), config.other.cache_dir_path) + if synchroniser.create_ssh_master_connection() != 0: print("Connection failed quitting") return 1 print("Connected to the remote.") - synchroniser.sync_files(["salut"]) + #synchroniser.sync_files() + #synchroniser.update_links(background=False) + #synchroniser.mount_remote_dir() synchroniser.close_ssh_master_connection() + print(paths_manager.get_paths_to_sync())