Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codemon clean #23

Closed
lucifer0987 opened this issue Nov 30, 2020 · 6 comments
Closed

codemon clean #23

lucifer0987 opened this issue Nov 30, 2020 · 6 comments
Labels
good first issue Good for newcomers

Comments

@lucifer0987
Copy link
Contributor

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.

@subhangi2731
Copy link

can you please assign this issue to me? @lucifer0987

@lucifer0987
Copy link
Contributor Author

@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.

@ankushbhardwxj ankushbhardwxj added the good first issue Good for newcomers label Dec 11, 2020
@ankushbhardwxj
Copy link
Owner

Reiterating the tasks :

  • Check all the files in a contest directory, diff them & see if it has any new content or just previous content.
  • Delete all files which have remained unchanged, except input file and output files.

@devsTudu
Copy link

Hello, can you assign this to me

@lucifer0987
Copy link
Contributor Author

@ankingcodes Can you please explain this issue once more?

@ankushbhardwxj
Copy link
Owner

Done 72938ac !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants