Closed lucifer0987 closed 3 years ago
can you please assign this issue to me? @lucifer0987
@subhangi2731 yes, you can work on this. but, i guess, first i need to complete the issue #12 then, only you can work on cleaning the residual files.
Reiterating the tasks :
Hello, can you assign this to me
@ankingcodes Can you please explain this issue once more?
Done 72938ac11f63f7fbf8f5b59e811fd8cc7c87e861 !
Follow up to this issue #12
It will be used to delete redundant files left after the contest as discussed in the issue above. We will have a lot of redundant files which will simply eat our storage. codemon clean will clear up all the mess(prog, input.txt, testcase files) after a contest.
There is a catch to this. We can't randomly delete the mess. We can directly delete prog. But for input.txt, we must check whether it contains something, if its empty delete it else give an error message saying "Input file is not empty, do you want to delete ? (Y/N)` and user can decide what to do with it. For the testcase files, we have to "diff" them before deleting, i.e., if the testcase files had no changes in it then it can be deleted else if any kind of changes was done, they must stay.