I'm not sure if windows is supposed to be supported (it's not tested in the github actions, but windows is mentioned as supported platform in pubspec.yaml), but at the moment it does not work on windows when trying to read an epub file.
So when it looks for the nav.html it can't be found because int the following code path = 'EPUB\nav.html' while the archive package only knows about file.name = 'EPUB/nav.html':
I'm not sure if windows is supposed to be supported (it's not tested in the github actions, but windows is mentioned as supported platform in
pubspec.yaml
), but at the moment it does not work on windows when trying to read an epub file.The reason is, the files in the
Archive
use/
as a path separator, but you are using thepath
package to create platform dependent paths: https://github.com/pedia/epub3/blob/8ed5c7b098b88c5fd359815c6ad96c33c458fa45/epub3/lib/src/reader.dart#L40So when it looks for the
nav.html
it can't be found because int the following codepath = 'EPUB\nav.html'
while the archive package only knows aboutfile.name = 'EPUB/nav.html'
:https://github.com/pedia/epub3/blob/8ed5c7b098b88c5fd359815c6ad96c33c458fa45/epub3/lib/src/reader.dart#L288-L295
There may be more places where this causes errors on windows.