[swcomp] Restructure writeEntries into writeFile and writeDirectory
[swcomp] Restructure writeEntries into writeFile and writeDirectory

tsolomko/SWCompression,tsolomko/SWCompression,tsolomko/SWCompression