this post was submitted on 22 Nov 2023
3 points (100.0% liked)

Data Hoarder

168 readers
1 users here now

We are digital librarians. Among us are represented the various reasons to keep data -- legal requirements, competitive requirements, uncertainty of permanence of cloud services, distaste for transmitting your data externally (e.g. government or corporate espionage), cultural and familial archivists, internet collapse preppers, and people who do it themselves so they're sure it's done right. Everyone has their reasons for curating the data they have decided to keep (either forever or For A Damn Long Time (tm) ). Along the way we have sought out like-minded individuals to exchange strategies, war stories, and cautionary tales of failures.

founded 1 year ago
MODERATORS
 

I downloaded an old website forum archive and it took hours to extract the zip into a folder. But now that it's extracted, finder is stuck on loading forever. I'm guessing this is because of the massive amount of files. From what I could recall while it was being extracted, most of these were PHP files. How do I smoothly browse this without my MacBook crying in pain

top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago

You need to use Terminal command line. You can filter by filename with asterisk wildcard or other options with ls command, or use grep command to match things inside the files you want.

[–] [email protected] 1 points 11 months ago

Terminal. ls for starters. You could do

ls -al {path to folder} > folder_contents.txt

Replace {path to folder} with the directory’s path. I like to drag and drop the folder from terminal into finder.

This will create a text file folder_contents.txt which you can open with a file editor to view the names of all files in that directory. Or if you don’t mind using the terminal to browse the text file I recommend less. Hope that helps!

[–] [email protected] 1 points 11 months ago

Terminal. ls for starters. You could do

ls -al {path to folder} > folder_contents.txt

Replace {path to folder} with the directory’s path. I like to drag and drop the folder from terminal into finder.

This will create a text file folder_contents.txt which you can open with a file editor to view the names of all files in that directory. Or if you don’t mind using the terminal to browse the text file I recommend less. Hope that helps!

[–] [email protected] 1 points 11 months ago

maybe try VSCode? it’s pretty quick with loading files and it’s free

[–] [email protected] 1 points 11 months ago

Terminal.

With that many files, you should be using CLI tools.

[–] [email protected] 1 points 11 months ago

BTW those aren't actual PHP files, they're most likely HTML. PHP is what they're called when they're code on the live website but the tools that make these archives only copy a dump of the webpages. It should have renamed them but apparently didn't. You'll have to do the renaming instead in order to open them. It's also extremely likely that the links between the forum pages are also ending in .php and won't work (the tool was also supposed to have converted the links inside the files).

[–] [email protected] 1 points 11 months ago

Use an indexing tool like NeoFinder to generate a searchable offline index of the folder or volume. Then you can use the NeoFinder index to find what you want, then right-click on the file and select “Reveal in Finder”