RE: recursing into subdirectories

"Tim Robinson" <[email protected]> Wed, 19 Nov 2003 22:13:22 -0000
Newsgroups gmane.comp.archivers.info-zip
Message-ID <00f401c3aeea$5972c560$0200a8c0@bart>
This is a multi-part message in MIME format.

------=_NextPart_000_00F5_01C3AEEA.5972C560
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_00F6_01C3AEEA.5972C560"


------=_NextPart_001_00F6_01C3AEEA.5972C560
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

This still doesn't recurse into subdirectories, although it does correctly
put the directory name on the zip entries

However, it did get me poking inside the VB code and it turns out this is at
fault.

The code from vbaccelerator.com has a boolean property for recursing
subdirectories. setting it to true sets the recurse property to 2 (-R). I
changed this to use 1 (-r) and now all these filespecs work properly:

foo/*
foo
foo\*.*

many thanks

--- Tim

 -----Original Message-----
From: [email protected] [mailto:[email protected]]On
Behalf Of PC Help Center Support
Sent: 19 November 2003 21:23
To: [email protected]
Subject: Re: [Info-ZIP] recursing into subdirectories


        add file spec "foo\*.*"
        instead..
        add file spec "foo/*"

        -------Original Message-------

        From: [email protected]
        Date: Wednesday, November 19, 2003 12:30:48 PM
        To: [email protected]
        Subject: [Info-ZIP] recursing into subdirectories

        Hi.

        I would be eternally grateful if someone could point me in the right
        direction for this. I can't find it on the FAQ.

        I am using the info-zip DLLS from visual basic using a wrapper from
        vbaccelerator.com, but I don't think the problem is in the VB code.

        say I have a zip file who's root directory is c:\temp and I want to
add the
        'foo' subdirectory and eveything in it. in my zip file I want to
paths to
        look like this

        foo/file1
        foo/subdir/file2

        my pseudocode looks like this:

        let root dir = "c\:temp"
        let recurse subdirectories = true
        let store foldernames = true
        let store directories = true
        add file spec "foo\*.*"

        in the zip file, I just get the contents of the foo directory but no
        subdirectories (in the above example I just get file1 with no
directory
        path)

        if I set the file spec to '*.*' everything works fine (except, of
course,
        that I get all the other subdirectories of temp when I only want
foo)

        I have tried this with winzip and I notice it is possible to do this
by
        dragging and dropping but not with the 'add files' dialog. of
course, I
        don't know what info-zip calls winzip is making so it doesn't really
help me
        much

        many thanks in advance

        --- Tim Robinson

        _______________________________________________
        Info-ZIP mailing list
        [email protected]
        http://lists.wku.edu/mailman/listinfo/info-zip

        .


  ____________________________________________________
    IncrediMail - Email has finally evolved - Click Here

------=_NextPart_001_00F6_01C3AEEA.5972C560
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1276" =
name=3DGENERATOR><!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER></X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd--></HEAD>
<BODY=20
style=3D"BACKGROUND-POSITION: 0px 0px; FONT-SIZE: 12pt; MARGIN: 5px 10px =
10px; FONT-FAMILY: Arial"=20
bgColor=3D#ffffff background=3D"" scroll=3Dyes X-FVER=3D"3.0" =
ORGYPOS=3D"0">
<DIV><SPAN class=3D663370622-19112003><FONT size=3D2>This still doesn't =
recurse into=20
subdirectories, although it does correctly put the directory name on the =
zip=20
entries</FONT></SPAN></DIV>
<DIV><SPAN class=3D663370622-19112003><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D663370622-19112003><FONT size=3D2>However, it did get =
me poking=20
inside the VB code and it turns out this is at =
fault.</FONT></SPAN></DIV>
<DIV><SPAN class=3D663370622-19112003><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D663370622-19112003><FONT size=3D2>The code from =
vbaccelerator.com=20
has a boolean property for recursing subdirectories. setting it to true =
sets the=20
recurse property to 2 (-R). I changed this to use 1 (-r) and now all =
these=20
filespecs work properly:</FONT></SPAN></DIV>
<DIV><SPAN class=3D663370622-19112003></SPAN><SPAN =
class=3D663370622-19112003><FONT=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D663370622-19112003><FONT =
size=3D2>foo/*</FONT></SPAN></DIV>
<DIV><SPAN class=3D663370622-19112003><FONT =
size=3D2>foo</FONT></SPAN></DIV>
<DIV><SPAN class=3D663370622-19112003><FONT =
size=3D2>foo\*.*</FONT></SPAN></DIV>
<DIV><SPAN class=3D663370622-19112003><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D663370622-19112003><FONT size=3D2>many =
thanks</FONT></SPAN></DIV>
<DIV><SPAN class=3D663370622-19112003><FONT =
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D663370622-19112003><FONT size=3D2>--- =
Tim</FONT></SPAN></DIV>
<DIV><SPAN class=3D663370622-19112003></SPAN><FONT face=3DTahoma =
size=3D2><SPAN=20
class=3D663370622-19112003><FONT face=3DArial=20
size=3D3>&nbsp;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DTahoma size=3D2><SPAN=20
class=3D663370622-19112003>&nbsp;</SPAN>-----Original =
Message-----<BR><B>From:</B>=20
[email protected] [mailto:[email protected]]<B>On =
Behalf=20
Of </B>PC Help Center Support<BR><B>Sent:</B> 19 November 2003=20
21:23<BR><B>To:</B> [email protected]<BR><B>Subject:</B> Re: =
[Info-ZIP]=20
recursing into subdirectories<BR><BR></DIV></FONT>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px =
solid">
  <TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 =
width=3D"100%"=20
    border=3D0><TBODY>
    <TR>
      <TD id=3DINCREDITEXTREGION=20
      style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-FAMILY: Arial" =
width=3D"100%">
        <DIV>add file spec "foo\*.*"</DIV>
        <DIV>instead..</DIV>
        <DIV>add file spec "foo/*"&nbsp;</DIV>
        <DIV>&nbsp;</DIV>
        <DIV id=3DIncrediOriginalMessage><I>-------Original=20
        Message-------</I></DIV>
        <DIV>&nbsp;</DIV>
        <DIV id=3Dreceivestrings>
        <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>From:</B></I> <A=20
        =
href=3D"mailto:[email protected]">[email protected]</A></DIV>
        <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Date:</B></I> =
Wednesday,=20
        November 19, 2003 12:30:48 PM</DIV>
        <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>To:</B></I> <A=20
        =
href=3D"mailto:[email protected]">[email protected]</A></DIV>
        <DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i><B>Subject:</B></I> =
[Info-ZIP]=20
        recursing into subdirectories</DIV></DIV>
        <DIV>&nbsp;</DIV>
        <DIV>Hi.</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>I would be eternally grateful if someone could point me in =
the=20
        right</DIV>
        <DIV>direction for this. I can't find it on the FAQ.</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>I am using the info-zip DLLS from visual basic using a =
wrapper=20
        from</DIV>
        <DIV>vbaccelerator.com, but I don't think the problem is in the =
VB=20
        code.</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>say I have a zip file who's root directory is c:\temp and I =
want to=20
        add the</DIV>
        <DIV>'foo' subdirectory and eveything in it. in my zip file I =
want to=20
        paths to</DIV>
        <DIV>look like this</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>foo/file1</DIV>
        <DIV>foo/subdir/file2</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>my pseudocode looks like this:</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>let root dir =3D "c\:temp"</DIV>
        <DIV>let recurse subdirectories =3D true</DIV>
        <DIV>let store foldernames =3D true</DIV>
        <DIV>let store directories =3D true</DIV>
        <DIV>add file spec "foo\*.*"</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>in the zip file, I just get the contents of the foo =
directory but=20
        no</DIV>
        <DIV>subdirectories (in the above example I just get file1 with =
no=20
        directory</DIV>
        <DIV>path)</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>if I set the file spec to '*.*' everything works fine =
(except, of=20
        course,</DIV>
        <DIV>that I get all the other subdirectories of temp when I only =
want=20
        foo)</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>I have tried this with winzip and I notice it is possible =
to do=20
        this by</DIV>
        <DIV>dragging and dropping but not with the 'add files' dialog. =
of=20
        course, I</DIV>
        <DIV>don't know what info-zip calls winzip is making so it =
doesn't=20
        really help me</DIV>
        <DIV>much</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>many thanks in advance</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>--- Tim Robinson</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>_______________________________________________</DIV>
        <DIV>Info-ZIP mailing list</DIV>
        <DIV><A=20
        =
href=3D"mailto:[email protected]">[email protected]</A></DIV>
        <DIV><A=20
        =
href=3D"http://lists.wku.edu/mailman/listinfo/info-zip">http://lists.wku.=
edu/mailman/listinfo/info-zip</A></DIV>
        <DIV>&nbsp;</DIV>
        <DIV>.</DIV></TD></TR>
    <TR>
      <TD id=3DINCREDIFOOTER width=3D"100%">
        <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
          <TBODY>
          <TR>
            <TD width=3D"100%"></TD>
            <TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD>
            <TD id=3DINCREDIANIM vAlign=3Dbottom=20
      =
align=3Dmiddle></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><SPAN =

  id=3DIncrediStamp><SPAN dir=3Dltr><FONT face=3D"Arial, Helvetica, =
sans-serif"=20
  size=3D2>____________________________________________________<BR><FONT =

  face=3D"Comic Sans MS" size=3D2><A=20
  =
href=3D"http://www.incredimail.com/redir.asp?ad_id=3D309&amp;lang=3D9"><I=
MG alt=3D""=20
  hspace=3D0 src=3D"cid:[email protected]" align=3Dbaseline =
border=3D0></A>&nbsp;=20
  <I>IncrediMail</I> - <B>Email has finally evolved</B> - </FONT><A=20
  =
href=3D"http://www.incredimail.com/redir.asp?ad_id=3D309&amp;lang=3D9"><F=
ONT=20
  face=3D"Times New Roman" size=3D3><B><U>Click=20
  =
Here</U></B></FONT></A></SPAN></SPAN></FONT></BLOCKQUOTE></BODY></HTML>

------=_NextPart_001_00F6_01C3AEEA.5972C560--

------=_NextPart_000_00F5_01C3AEEA.5972C560
Content-Type: image/gif;
	name="IMSTP.gif"
Content-Transfer-Encoding: base64
Content-ID: <[email protected]>

R0lGODlhFAAPALMIAP9gAM9gAM8vAM9gL/+QL5AvAGAvAP9gL////wAAAAAAAAAAAAAAAAAAAAAA
AAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJFAAIACwAAAAAFAAPAAAEVRDJSaudJuudrxlEKI6B
URlCUYyjKpgYAKSgOBSCDEuGDKgrAtC3Q/R+hkPJEDgYCjpKr5A8WK9OaPFZwHoPqm3366VKyeRt
E30tVVRscMHDqV/u+AgAIfkEBWQACAAsAAAAABQADwAABBIQyUmrvTjrzbv/YCiOZGmeaAQAIfkE
CRQACAAsAgABABAADQAABEoQIUOrpXIOwrsPxiQUheeRAgUA49YNhbCqK1kS9grQhXGAhsDBUJgZ
AL2Dcqkk7ogFpvRAokSn0p4PO6UIuUsQggSmFjKXdAgRAQAh+QQFCgAIACwAAAAAFAAPAAAEEhDJ
Sau9OOvNu/9gKI5kaZ5oBAAh+QQJFAAIACwCAAEAEAANAAAEShAhQ6ulcg7Cuw/GJBSF55ECBQDj
1g2FsKorWRL2CtCFcYCGwMFQmBkAvYNyqSTuiAWm9ECiRKfSng87pQi5SxCCBKYWMpd0CBEBACH5
BAVkAAgALAAAAAAUAA8AAAQSEMlJq7046827/2AojmRpnmgEADs=

------=_NextPart_000_00F5_01C3AEEA.5972C560--