Hello to everyone who is kind to read this.
I work with a Java program, I didn’t do it, but I clarified it, the problem is that you can add files, but I want to check that the added files are not compressed in any known person’s format, so I don’t want people to be able to add a zip file or rar or 7z or gz, and so on.
can someone help me with an idea, is this even possible?
early.
* Editing: The program used by IT students adds the files (.java, .class, .php, .doc, .mdb) of their source code, the paths are stored in lines, and at the end the program zips up the files and send them to the teacher, know that the instructor does not want to receive compressed or compressed files, which is the reason for checking.
source
share