Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"In the fight between you and the world, back the world." -- Frank Zappa


devel / comp.lang.tcl / Unzip a zip file containing multiple files and folders

SubjectAuthor
* Unzip a zip file containing multiple files and foldersShaun Kulesa
`* Re: Unzip a zip file containing multiple files and foldersRobert Heller
 `* Re: Unzip a zip file containing multiple files and foldersShaun Kulesa
  `- Re: Unzip a zip file containing multiple files and foldersLuc

1
Unzip a zip file containing multiple files and folders

<83723cb8-c5c9-46d7-b385-4b362104f3f3n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21765&group=comp.lang.tcl#21765

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:5a0c:0:b0:3ee:d531:31f6 with SMTP id n12-20020ac85a0c000000b003eed53131f6mr689530qta.2.1681671957573;
Sun, 16 Apr 2023 12:05:57 -0700 (PDT)
X-Received: by 2002:a05:622a:281:b0:3e0:c4ac:1620 with SMTP id
z1-20020a05622a028100b003e0c4ac1620mr3892769qtw.13.1681671957315; Sun, 16 Apr
2023 12:05:57 -0700 (PDT)
Path: i2pn2.org!rocksolid2!news.neodome.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 16 Apr 2023 12:05:57 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=87.115.149.231; posting-account=Be2r4goAAACg4Ko_BkJ0V-RlkGAdXGng
NNTP-Posting-Host: 87.115.149.231
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <83723cb8-c5c9-46d7-b385-4b362104f3f3n@googlegroups.com>
Subject: Unzip a zip file containing multiple files and folders
From: shaunkulesa@gmail.com (Shaun Kulesa)
Injection-Date: Sun, 16 Apr 2023 19:05:57 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1248
 by: Shaun Kulesa - Sun, 16 Apr 2023 19:05 UTC

I have a .zip file that contains folders which have files and other folders that contain files and folders and so on...

It's a zipped version of the tcl directory if that makes it more clear.

How can I unzip all of these into a directory?

Re: Unzip a zip file containing multiple files and folders

<K-CcnaqAydE1zqH5nZ2dnZfqn_SdnZ2d@giganews.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21766&group=comp.lang.tcl#21766

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 16 Apr 2023 19:59:36 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.15)
Subject: Re: Unzip a zip file containing multiple files and folders
In-Reply-To: <83723cb8-c5c9-46d7-b385-4b362104f3f3n@googlegroups.com>
References: <83723cb8-c5c9-46d7-b385-4b362104f3f3n@googlegroups.com>
Newsgroups: comp.lang.tcl
Content-Type: text/plain; charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <K-CcnaqAydE1zqH5nZ2dnZfqn_SdnZ2d@giganews.com>
Date: Sun, 16 Apr 2023 19:59:36 +0000
Lines: 33
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-74sMOSdM2TqkX0VsHyN9aCS6cyDoEXb9r1+WpXs5uzHNu56cLulQ/d+IO1HGJiTes/5JhWFyB3+rMZJ!avOT9cT1iUeiDm3ouFiDIeuPhTI/ISiL1D5Ldl2eujOtltU97DDVb3Foj2Sq6kyMldk/hYeyJo91!5Go=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2967
 by: Robert Heller - Sun, 16 Apr 2023 19:59 UTC

At Sun, 16 Apr 2023 12:05:57 -0700 (PDT) Shaun Kulesa <shaunkulesa@gmail.com> wrote:

>
> I have a .zip file that contains folders which have files and other folders that contain files and folders and so on...
>
> It's a zipped version of the tcl directory if that makes it more clear.
>
> How can I unzip all of these into a directory?

The "unzip" command will unzip the whole tree as it is stored in the .zip
file, restoring the stored directories ("folders" -- a really stupid bit of
terminology, thank you Steve Jobs) and the files in those directories in the
restored directories, and so on all the way down the directory tree. Or do you
want something else? The unzip command also has a -d option to change the top
level directory to restore to, if you want to restore the files to a different
directory (something other than the current default directory.

At least this is how things work under Posix O/Ss (BSD Unix and Linux, etc.)
from the command line. Don't know about how that work under a GUI. There are
VFS packages to allow the Tcl program to open a .zip file as a VFS -- eg
"mount" a .zip file like it was a "disk" and then use Tcl's FS functions (file
command and source, open, read/gets, puts, fconfigure, close, etc. commands)
to access files in the .zip file.

>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: Unzip a zip file containing multiple files and folders

<68532cef-3cb4-4b3f-bfd5-23cb8761a460n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21767&group=comp.lang.tcl#21767

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:ac8:7d50:0:b0:3e2:976d:ebe9 with SMTP id h16-20020ac87d50000000b003e2976debe9mr3998472qtb.1.1681677797241;
Sun, 16 Apr 2023 13:43:17 -0700 (PDT)
X-Received: by 2002:a05:620a:1471:b0:74a:ceac:8e8d with SMTP id
j17-20020a05620a147100b0074aceac8e8dmr2232101qkl.9.1681677797030; Sun, 16 Apr
2023 13:43:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 16 Apr 2023 13:43:16 -0700 (PDT)
In-Reply-To: <K-CcnaqAydE1zqH5nZ2dnZfqn_SdnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.115.149.231; posting-account=Be2r4goAAACg4Ko_BkJ0V-RlkGAdXGng
NNTP-Posting-Host: 87.115.149.231
References: <83723cb8-c5c9-46d7-b385-4b362104f3f3n@googlegroups.com> <K-CcnaqAydE1zqH5nZ2dnZfqn_SdnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <68532cef-3cb4-4b3f-bfd5-23cb8761a460n@googlegroups.com>
Subject: Re: Unzip a zip file containing multiple files and folders
From: shaunkulesa@gmail.com (Shaun Kulesa)
Injection-Date: Sun, 16 Apr 2023 20:43:17 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1682
 by: Shaun Kulesa - Sun, 16 Apr 2023 20:43 UTC

"Don't know about how that work under a GUI. There are
VFS packages to allow the Tcl program to open a .zip file as a VFS -- eg
"mount" a .zip file like it was a "disk" and then use Tcl's FS functions (file
command and source, open, read/gets, puts, fconfigure, close, etc. commands)
to access files in the .zip file."

This is what I was afraid of, I will implement this later on but for now I have just made a windows batch script that I will call from Tcl to unzip the zipped file.

Re: Unzip a zip file containing multiple files and folders

<20230416175714.33bd759f@lud1.home>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21768&group=comp.lang.tcl#21768

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: Unzip a zip file containing multiple files and folders
Date: Sun, 16 Apr 2023 17:57:14 -0300
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <20230416175714.33bd759f@lud1.home>
References: <83723cb8-c5c9-46d7-b385-4b362104f3f3n@googlegroups.com>
<K-CcnaqAydE1zqH5nZ2dnZfqn_SdnZ2d@giganews.com>
<68532cef-3cb4-4b3f-bfd5-23cb8761a460n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="d7b974ac7051bcf6ea11f8d2e48eaa07";
logging-data="2829713"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189SQE5O/MEXsQOgAN50DGetx4xNEpPG94="
Cancel-Lock: sha1:vrpwZhcw2S7dghwMqaq+0a81WSw=
 by: Luc - Sun, 16 Apr 2023 20:57 UTC

Are you aware of Tcllib?

https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/toc.md

More specifically:

https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/zip/decode.md

--
Luc
>>


devel / comp.lang.tcl / Unzip a zip file containing multiple files and folders

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor