summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-07-07todoOskar
2024-07-07formatting fixOskar
2024-07-07Added some free'sOskar
2024-07-07Separated fill_lfc and lfc_formatted. I made it so fill_lfc makes a linked list.Oskar
2024-07-04added a check, not sure how good it is but it works okay for nowOskar
2024-07-04todo updateOskar
2024-07-04basic version of L and l is done, will move on to another branch for other ↵Oskar
functionality
2024-07-04Proof of concept -l and -L system. Still quite a few bugs to iron out. Might ↵Oskar
also divide some functions to make everything a bit easier to work with
2024-07-03added some const to make code a bit more clearOskar
2024-07-02made list_files, it can probably be hugely improved but i think that it's ↵Oskar
good enough for today though. This is kind of a proof of concept though so ill probably change it tomorrow. It's not perfect.
2024-07-02fixed return statementOskar
2024-07-01noticed some small things i fixedOskar
2024-07-01I made a new macro so i can remove a whole lot of code. I also realised that ↵Oskar
i am REALLY stupid and was calculating the remaining size for concat_str wrong all along
2024-07-01fixed bug where if ID is 1 then the program doesn't just exitOskar
2024-07-01made it so ipi isnt malloc'd and thus we can remove a whole lot of code and ↵Oskar
complexity
2024-07-01tmp caseOskar
2024-06-30changed fill_ipi to reflect whether we are using tmp or notOskar
2024-06-30new tmp strings for ipiOskar
2024-06-30fixed bug where ID starts at 2 if log directory is emptyOskar
2024-06-29fixes issue where trashed files may have the same names so i added the ID to ↵Oskar
the trashed filenames as well
2024-06-29cleanup and fixed missing if statements for concat_strOskar
2024-06-29readmeOskar
2024-06-29update TODOOskar
2024-06-29New structs and new function to fill the struct. I need to take a moment to ↵Oskar
think about how i will handle duplicate files with the same names
2024-06-29added some new strings to initial_path_info and updated fill_ipi ↵Oskar
accordingly. It's definitely a lot cleaner now.
2024-06-29added new strings to initial path info struct and improved fill_ipiOskar
2024-06-29major bug found, not sure how to fix itOskar
2024-06-28can finally trash files and the program logs it. Its not very pretty though. ↵Oskar
I think ill have to make some more structs and functions for a cleaner way of handling this
2024-06-28got some suggestions on how to handle non option arguments, i did a little ↵Oskar
test on it and it seems to work. I will have to implement some sort of loop to handle multiple files
2024-06-28Changed from char pointers to already determined size, thus we can also ↵Oskar
remove 4 of the malloc's
2024-06-27find_highest_id is done, tested it some and added some debug cvm_fprintf's. ↵Oskar
I think it works? Testing will probably prove me wrong but ill deal with it when it happens.
2024-06-27Lots of small changes and improvements. Removed all instances of using stcat ↵Oskar
directly and moved to using concat_str for all those cases. Also added alot more free_ipi to all of the cases where we exit because of some error
2024-06-26added safeguards to fill_ipi, hope they are good enough...Oskar
2024-06-26went to hell and back to get concat_str to work properlyOskar
2024-06-25added basename so we only get the filenameOskar
2024-06-25function to get all the infoOskar
2024-06-25Added functions for path information as well as a function to check if trash ↵Oskar
directories exist
2024-06-24first commitOskar