updated using git-ex
authoralex <[email protected]>
Mon, 6 Sep 2021 04:00:39 +0000 (21:00 -0700)
committeralex <[email protected]>
Mon, 6 Sep 2021 04:00:39 +0000 (21:00 -0700)
todo

diff --git a/todo b/todo
index 93927c716a16d2dc18b3b453243ca7e73149baf6..7ad302aa241a4efbd12654c91e60ba43c78ca752 100644 (file)
--- 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