Archiver (part 10)

  • 32
  • Locked
It's time to refactor the ZipFileManager class. The createZip method has code that we're also going to need in the methods that will add files to or remove them from an archive, extract files, etc. We'll implement those methods later, but we can move the common code to separate methods now.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 39 , Greenfield, USA, United States
21 April 2022, 18:28
Tough task, mostly because the validation feedback is a little bit misleading. If you are getting stuck on the last requirement despite that your createZip method looks exactly the same as the solution, check the other methods in the ZipManagerClass. I found that a subtle error in the AddNewZipEntry method was triggering the validation to say the createZip method was wrong. Checking the help forum for this lesson, it appears this is a common place people are getting stuck.
1 April 2020, 14:06
I'm stuck on the last verification. Does anyone have a clue? Recommendation from mentor: Be sure the createZip method properly saves a directory and the files it contains. Be sure to use the FileManager class and the addNewZipEntry method.