updated using git-extra
authoralex <[email protected]>
Thu, 14 Oct 2021 01:35:04 +0000 (18:35 -0700)
committeralex <[email protected]>
Thu, 14 Oct 2021 01:35:04 +0000 (18:35 -0700)
todo

diff --git a/todo b/todo
index ee9dead846a8ba5a47c698f2a64fe0b12cfba51d..1f27706fa255909931132ca6d4febd82c776e9d4 100644 (file)
--- a/todo
+++ b/todo
@@ -64,24 +64,21 @@ Stage 0:
        *add option for worker_threads [default=ncores]
        *add default watch directories
        -foreach watch directory
-               -walk each tree
-               -add each file to add queue
-                       -add queue = hashmap to allow for duplicate checking
+               *walk each tree
+               *add each file to add queue
+               -modify adding to queue function to check for duplicates before expanding hashmap - HERE
                -add static pointer to current torrent
+                       -see torrent_add
+                       -tree_add+associated functions
+                               -sort file_tree in torrent struct after all done
+                                       OR
+                               -sort upon insert/removal
                        -add file to current torrent
                -add pointer to struct file to torrent->files hashmap + file_tree
                        -2 ways to access, file_tree must be sorted, hashmap allows for o(1) reads
-               -modify adding to queue function to check for duplicates before expanding hashmap
-       -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
+       -add all files in add queue
                -multi-threaded add, spawn opt.worker_threads # of threads
                -figure out what hashing needs to be done
-               -add to torrent(s)
-       -sort file_tree in torrent struct after all done
                -create tree_sort method
        -on modification
                -update files