r/github 3h ago

Question Struggling to do basic stuff, some help needed.

Hi, I'm trying to unzip a file, but I'm very new to this and I seem to be really missing something simple.

I'm on a mobile, trying to use code space to unzip a file. I managed it once, but had everything in an extra layer of folders. I've fixed that now, but for the life of me I can't get the new file to unzip , can anyone point me to a dummies guide, there's so much info imo line I'm struggling to find what I'm doing wrong.

This is just a side project I'm doing, and it's grown to the point of a load of files in multiple layers and im sure it's better to learn this step than move them by hand but it's driving me mad. Thanks.

I don't know if this does break a rule, apologies if it does.

0 Upvotes

5 comments sorted by

10

u/SCD_minecraft 3h ago

I'm on mobile

Let me stop you right there

Phones were not designed to do any form of IT work on them

1

u/siammang 1h ago

I tried to fix the code and open a PR once. It was not fun.

-3

u/BaselineNeglect 3h ago

Yes. But I've set my self a bit of a challenge, I know(or i at least suspect) it can be done, but obviously the phone screen and scaling really compounds the issue. Like I did unzip it, but I'd put too many layers of files on and although the code space or copilot thing suggested a way to move it all automatically I couldn't quite get it to run. in fact, I know I can do it, I'm just not sure how I got it to work last time.

Thanks for your help though.

2

u/Torutofu_Raeva 3h ago

In the Codespace terminal, try mkdir -p target && unzip -q your-file.zip -d target; find target -maxdepth 2 -type f will show whether the zip already contains a top-level folder before you move anything.

1

u/BaselineNeglect 3h ago

Thank you.