Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7926637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:51:18+00:00 2026-06-03T18:51:18+00:00

I wrote some code this week to generate zip files, and tried to use

  • 0

I wrote some code this week to generate zip files, and tried to use it on both Windows and Mac machines. Mac works fine (it was written with Mac in mind) but Windows less so. The resulting zip files, when opened on my Mac, contains a single level of files that look like this:

Filenames, as viewed through a Mac.

Rather than the expected nested filesystem of flash_out/assets, etc. I’m not hugely concerned about how to fix the code that generated these, but I am rather bothered about fixing these particular files so I can compile them on my mac. As it stands, I can’t use these.

The strange thing is that opening up this zip on a Windows machine does indeed interpret this as a series of nested folders with files in. But zipping that file system up and sending it back to the Mac, the problem persists. I’ve not seen anything quite like this before.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:51:19+00:00Added an answer on June 3, 2026 at 6:51 pm

    Assuming you’re using the bash shell, cd into the folder with the garbled filepaths, and try this:

    for badfile in *\\*; do
        goodfile="${badfile//\\//}"
        mkdir -p "$(dirname "$goodfile")"
        mv "$badfile" "$goodfile"
    done
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I originally wrote some code like this: class Foo { public: Foo() : m_buffer()
I wrote some code that looks like this: def get(x, y) @cachedResults.set(x,y, Math.hypot(x, y))
In rails I want to wrote some code to change this url string https://img.skitch.com/20101222-kg5chjx4jetgcdeaug46hi6jpk.jpg
Can someone write some sample code to explain this concept? I know what a
I wrote some code with a lot of recursion, that takes quite a bit
I wrote some code to read a file in my Java Servlet class. (I'm
I wrote some code which monitors the output of Stopwatch using a tight loop.
I wrote some code (Java and LDAP) to create a user in the Active
I wrote some code for the ising model in python (2d). Everything looks seems
I wrote some code today and It was changed by another developer who said

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.