Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Programming
»
Operating Systems
»
[Solve]TZipper in .zip created under Windows no folders if extracted under Linux
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
FAQ
Wiki
Bugtracker
Packages
IRC channel
Developer Blog
Follow us on Twitter
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solve]TZipper in .zip created under Windows no folders if extracted under Linux (Read 2431 times)
d3im
Newbie
Posts: 3
[Solve]TZipper in .zip created under Windows no folders if extracted under Linux
«
on:
February 06, 2016, 11:55:59 am »
Hi,
I have problem while using Lazarus IDE v1.4.4 FPC 2.6.4 with TZipper.
When I add files (even in folder) to zip and it zips these files, on Windows it unzips fine (even 7zip in test writes 0 folders).
Under Linux this zip is unzipped without folders, just files.
Is there any chance to zip files/folders with TZipper and unzip it on Linux flawlessly?
I looked into zip files to find differences and found the correct one zip file has folders as independent entries.
Thanks in advance
«
Last Edit: February 09, 2016, 12:00:35 pm by d3im
»
Logged
d3im
Newbie
Posts: 3
Re: TZipper in .zip created under Windows no folders if extracted under Linux
«
Reply #1 on:
February 08, 2016, 11:25:27 am »
I found another usable component - Abbrevia. Could it make "correct" .zip files? Should I give it a try or not?
Thanks
Logged
marcov
Global Moderator
Hero Member
Posts: 6097
Re: TZipper in .zip created under Windows no folders if extracted under Linux
«
Reply #2 on:
February 08, 2016, 11:46:17 am »
There are many zip formats. A 64-bit filesize extension was added only in FPC 3.0.
The best would be to try find out (unix "file" command and unzip) how the file looks.
It could be that you add files with a backward slash instead of the regimented forward slahs, which is somewhat ok on Windows, but not on *nix.
Logged
d3im
Newbie
Posts: 3
Re: TZipper in .zip created under Windows no folders if extracted under Linux
«
Reply #3 on:
February 08, 2016, 04:03:24 pm »
Seems to be solved now (I'll mark it solved after my main program will be updated and everything about zip worked).
I just changed \ to / in path inside zip (the second parameter of AddFileEntry method) and it seems to unzip under *nix well.
I could say I've tried the same before right inside main program and it didn't worked... But it may be my mistake
Anyway thank you...
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Programming
»
Operating Systems
»
[Solve]TZipper in .zip created under Windows no folders if extracted under Linux
Recent
Find text
by
Jurassic Pork
[
Today
at 05:30:10 am]
how can i show two digit ...
by
majid.ebru
[
Today
at 04:58:27 am]
Online Package Manager
by
matthius
[
Today
at 04:55:20 am]
is it possible to stream ...
by
kapibara
[
Today
at 04:27:16 am]
tibconnection parameters
by
3rdshiftcoder
[
Today
at 03:38:48 am]
A simpler undo / redo cla...
by
tomitomy
[
Today
at 03:32:16 am]
Linux TUN
by
benohb
[
Today
at 01:53:12 am]
Ubuntu Launcher not using...
by
KarenT
[
Today
at 12:38:24 am]
LAMW: Android 7.1.2
by
c4p
[
Today
at 12:30:44 am]
Material Design
by
circular
[April 22, 2018, 11:02:28 pm]