Discussion:
Deal with splitted ZIM files
Emmanuel Engelhart
2010-08-21 15:53:17 UTC
Permalink
Hi,

I need to have Kiwix able to deal with splitted ZIM files like discussed
in June. Tommi seems to have implemented that in the zimlib but I do not
achieve to deal with.

My use case is a 11GB big file splitted in 3 smaller files called xaa,
xab and xac. I have moved all of them in /tmp/.

But, new zim::File(zimFilePath) returns the following error:
error 2 opening file "/tmp/xaa:/tmp/xab:/tmp/xac": Aucun fichier ou
dossier de ce type

I also called zimdump -F "/tmp/xaa:/tmp/xab:/tmp/xac" and get the same
error.

So Christian or Tommi, how should i do?

Thx in advance
Emmanuel
Tommi Mäkitalo
2010-08-21 19:28:39 UTC
Permalink
Hi,

I looked at the code and tried to rembember, how I did that. Looks like I have
to spend some time in documentation;-)

If you have split your zim file into /tmp/xaa, /tmp/xab and /tmp/xac pass
"/tmp/a" as a file name and the zimlib will find the files if "/tmp/a" do not
exist. It just appends two characters starting with aa, ab... until no further
files are found.

Tommi
Post by Emmanuel Engelhart
Hi,
I need to have Kiwix able to deal with splitted ZIM files like discussed
in June. Tommi seems to have implemented that in the zimlib but I do not
achieve to deal with.
My use case is a 11GB big file splitted in 3 smaller files called xaa,
xab and xac. I have moved all of them in /tmp/.
error 2 opening file "/tmp/xaa:/tmp/xab:/tmp/xac": Aucun fichier ou
dossier de ce type
I also called zimdump -F "/tmp/xaa:/tmp/xab:/tmp/xac" and get the same
error.
So Christian or Tommi, how should i do?
Thx in advance
Emmanuel
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
Tommi Mäkitalo
2010-08-21 19:33:33 UTC
Permalink
Maybe I should reactivate this parseFilelist function, which is currently dead
code, so as an alternative it will be possible to pass a colon separated list
of files.
Post by Tommi Mäkitalo
Hi,
I looked at the code and tried to rembember, how I did that. Looks like I
have to spend some time in documentation;-)
If you have split your zim file into /tmp/xaa, /tmp/xab and /tmp/xac pass
"/tmp/a" as a file name and the zimlib will find the files if "/tmp/a" do
not exist. It just appends two characters starting with aa, ab... until no
further files are found.
Tommi
Post by Emmanuel Engelhart
Hi,
I need to have Kiwix able to deal with splitted ZIM files like discussed
in June. Tommi seems to have implemented that in the zimlib but I do not
achieve to deal with.
My use case is a 11GB big file splitted in 3 smaller files called xaa,
xab and xac. I have moved all of them in /tmp/.
error 2 opening file "/tmp/xaa:/tmp/xab:/tmp/xac": Aucun fichier ou
dossier de ce type
I also called zimdump -F "/tmp/xaa:/tmp/xab:/tmp/xac" and get the same
error.
So Christian or Tommi, how should i do?
Thx in advance
Emmanuel
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
Emmanuel Engelhart
2010-08-22 17:27:27 UTC
Permalink
Hi Tommi,

it works perfectly for me now. Thank you.

Emmanuel
Post by Tommi Mäkitalo
Maybe I should reactivate this parseFilelist function, which is currently dead
code, so as an alternative it will be possible to pass a colon separated list
of files.
Post by Tommi Mäkitalo
Hi,
I looked at the code and tried to rembember, how I did that. Looks like I
have to spend some time in documentation;-)
If you have split your zim file into /tmp/xaa, /tmp/xab and /tmp/xac pass
"/tmp/a" as a file name and the zimlib will find the files if "/tmp/a" do
not exist. It just appends two characters starting with aa, ab... until no
further files are found.
Tommi
Post by Emmanuel Engelhart
Hi,
I need to have Kiwix able to deal with splitted ZIM files like discussed
in June. Tommi seems to have implemented that in the zimlib but I do not
achieve to deal with.
My use case is a 11GB big file splitted in 3 smaller files called xaa,
xab and xac. I have moved all of them in /tmp/.
error 2 opening file "/tmp/xaa:/tmp/xab:/tmp/xac": Aucun fichier ou
dossier de ce type
I also called zimdump -F "/tmp/xaa:/tmp/xab:/tmp/xac" and get the same
error.
So Christian or Tommi, how should i do?
Thx in advance
Emmanuel
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
Emmanuel Engelhart
2010-08-28 18:29:56 UTC
Permalink
Works also on Windows, but I have had to patch the code:
http://kiwix.svn.sourceforge.net/viewvc/kiwix?view=revision&revision=1710

Happy WE
Emmanuel
Post by Emmanuel Engelhart
Hi Tommi,
it works perfectly for me now. Thank you.
Emmanuel
Post by Tommi Mäkitalo
Maybe I should reactivate this parseFilelist function, which is currently dead
code, so as an alternative it will be possible to pass a colon separated list
of files.
Post by Tommi Mäkitalo
Hi,
I looked at the code and tried to rembember, how I did that. Looks like I
have to spend some time in documentation;-)
If you have split your zim file into /tmp/xaa, /tmp/xab and /tmp/xac pass
"/tmp/a" as a file name and the zimlib will find the files if "/tmp/a" do
not exist. It just appends two characters starting with aa, ab... until no
further files are found.
Tommi
Post by Emmanuel Engelhart
Hi,
I need to have Kiwix able to deal with splitted ZIM files like discussed
in June. Tommi seems to have implemented that in the zimlib but I do not
achieve to deal with.
My use case is a 11GB big file splitted in 3 smaller files called xaa,
xab and xac. I have moved all of them in /tmp/.
error 2 opening file "/tmp/xaa:/tmp/xab:/tmp/xac": Aucun fichier ou
dossier de ce type
I also called zimdump -F "/tmp/xaa:/tmp/xab:/tmp/xac" and get the same
error.
So Christian or Tommi, how should i do?
Thx in advance
Emmanuel
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
e***@public.gmane.org
2010-09-30 06:23:10 UTC
Permalink
Hi,

What about this patch for Windows?

This is the second time I propose it and I never get a feedback and as far
as I know it wasn't applied to trunk:
https://intern.openzim.org/pipermail/dev-l/2010-April/000398.html

Without it, it won't run (maybe compile) on Windows (if compiled with MS
cl.exe)

Is there something wrong?

Regards
Emmanuel

On Sat, 28 Aug 2010 20:29:56 +0200, Emmanuel Engelhart
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
http://kiwix.svn.sourceforge.net/viewvc/kiwix?view=revision&revision=1710
Happy WE
Emmanuel
Post by Emmanuel Engelhart
Hi Tommi,
it works perfectly for me now. Thank you.
Emmanuel
Post by Tommi Mäkitalo
Maybe I should reactivate this parseFilelist function, which is currently dead
code, so as an alternative it will be possible to pass a colon separated list
of files.
Post by Tommi Mäkitalo
Hi,
I looked at the code and tried to rembember, how I did that. Looks like I
have to spend some time in documentation;-)
If you have split your zim file into /tmp/xaa, /tmp/xab and /tmp/xac pass
"/tmp/a" as a file name and the zimlib will find the files if
"/tmp/a"
Post by Emmanuel Engelhart
Post by Tommi Mäkitalo
Post by Tommi Mäkitalo
do
not exist. It just appends two characters starting with aa, ab... until no
further files are found.
Tommi
Post by Emmanuel Engelhart
Hi,
I need to have Kiwix able to deal with splitted ZIM files like discussed
in June. Tommi seems to have implemented that in the zimlib but I do not
achieve to deal with.
My use case is a 11GB big file splitted in 3 smaller files called xaa,
xab and xac. I have moved all of them in /tmp/.
error 2 opening file "/tmp/xaa:/tmp/xab:/tmp/xac": Aucun fichier ou
dossier de ce type
I also called zimdump -F "/tmp/xaa:/tmp/xab:/tmp/xac" and get the same
error.
So Christian or Tommi, how should i do?
Thx in advance
Emmanuel
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkx5VaQACgkQn3IpJRpNWtODUQCfa08Y6t4rEJBHmdWsLZzC4OJJ
+PAAnR8ltMvbe3YnJA7UbKv/7sjB688I
=YTtN
-----END PGP SIGNATURE-----
Andy Rabagliati
2010-08-23 06:54:51 UTC
Permalink
Post by Tommi Mäkitalo
Maybe I should reactivate this parseFilelist function, which is currently dead
code, so as an alternative it will be possible to pass a colon separated list
of files.
I think that is more intuitive than guessing letters of the alphabet.

I am glad you can split zim files arbitrarily, though.

Cheers, Andy!
Loading...