From 3099dcc390f2862d4b12e047162224d443bcef89 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 5 Sep 2021 21:00:39 -0700 Subject: [PATCH] updated using git-ex --- todo | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/todo b/todo index 93927c7..7ad302a 100644 --- a/todo +++ b/todo @@ -62,14 +62,25 @@ Stage 0: -peers -setup watches *add option to watch directories - -add option for worker_threads [default=ncores] - -find all files in directory + *add option for worker_threads [default=ncores] + -figure out files organization + -store in files object + -store inside respective struct torrent + -both? + -file to process queue + in respective torrents + -handle duplicates? + -find all files in all directories -functions for traversing directory + -man scandir + -man nftw <-- this probably? + -https://stackoverflow.com/questions/66936692/how-to-use-scandir-in-c-to-list-sorted-subdirectories-recursively -save to struct with file size - -multi-threaded add (spawn new thread per file) + -multi-threaded add, spawn opt.worker_threads # of threads + -add to torrent(s) -sort in torrent struct after all done - -on modification, update torrents --add files to torrent + -on modification + -update torrents? + -build+replace existing torrent -create torrent -build merkle tree -bencode -- 2.30.2