createArchiveEntry
Creates a new zip entry taking some information from the given file and using the provided name.
The name will be adjusted to end with a forward slash "/" if the file is a directory. If the file is not a directory a potential trailing forward slash will be stripped from the entry name.
Must not be used if the stream has already been closed.