Welcome, Guest. Please login or register.

Author Topic: Recursively unpack a collection of files, maintaining directory structure?  (Read 952 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline CalabTopic starter

  • Newbie
  • *
  • Join Date: Nov 2020
  • Posts: 19
  • Gender: Male
    • Show all replies
I have a collection of files, in a directory tree. They are in many ZIP and LHA formatted files.  I wish to unpack all the files, while maintaining the directory structure, to a different location.

Can someone suggest a simple script I can run that will do this?

The current tree looks like:
Code: [Select]
Maindir
   file1.zip
   dir1
      dir2
         file2.lha
         file3.zip
      dir3
         file4.lha
   dir4
      file5.zip

and should look like this after the script is run:

Code: [Select]
Altdir
   file1
   file1.icon
   dir1
      dir2
         file2
         file2.icon
         file2.readme
         file3
      dir3
         file4
         file4.info
         file4.dir
            file4.readme
   dir4
      file5
 

Offline CalabTopic starter

  • Newbie
  • *
  • Join Date: Nov 2020
  • Posts: 19
  • Gender: Male
    • Show all replies
Re: Recursively unpack a collection of files, maintaining directory structure?
« Reply #1 on: February 17, 2024, 05:11:03 PM »
Sorry for the late reply... I'm not getting notifications for my posts.

Thanks for the suggestions. I scrapped the idea of unpacking all the files and will just unpack what I need when I need it.