This commit is contained in:
Amber 2023-12-27 21:12:55 +01:00
parent ede81b4f32
commit 523c4e6b81
8 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -1,5 +1,5 @@
from snapshot import dump as _dump
from snapshot.generate import local as _genlocal
from lib.snapshot import dump as _dump
from lib.snapshot.generate import local as _genlocal
def dmpsnap(root_tree: str):
snapshot = _genlocal.generate_recursive_filemap_hash(root_tree)

View File

@ -1,6 +1,6 @@
import gzip
import json
from snapshot.generate import local as _genlocal
from lib.snapshot.generate import local as _genlocal
DUMP_FILE_NAME = '.snapshot.json.gz'
SNAPSHOT_PATH = '../'

View File

@ -9,7 +9,7 @@ import functools
import time
from client import agent as _agent
from lib.sclient import agent as _agent
def generate_rfile_hash(file_path, hexdigest=True, client=None):

View File

@ -7,8 +7,8 @@ if __name__ == '__main__':
last_local_tree_hash = {'taglioCapelli4.jpg': '5af62402ec7716e8d729b0683061f0c4', 'taglioCapelli5.jpg': '9c42961af589a279c4c828925291153b', 'pino.txt': 'd41d8cd98f00b204e9800998ecf8427e', 'taglioCapelli6.jpg': '4059905eab817c33ee48f912af80fdb7', 'spartiti_sepu': {'IMG_20220626_081839.jpg': '3c14e508124c928d59b393a571e2f751', 'IMG_20220626_081951.jpg': 'd484638ac09cbe40f8753de3f1b3c4a6'}, 'preferiti.txt': 'af45981ef2be534dbb37f96833d3fd04'}
from snapshot.generate import local as _genlocal
from snapshot import snap as _snap
from lib.snapshot.generate import local as _genlocal
from iface import snap as _snap
from tools import pretty_print as _pretty_print
local_tree_hash = _genlocal.generate_tree_hash('/home/luca/sharednotes_dev/')
diff = {}