Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling nested paths #14

Open
infiniteloopltd opened this issue Jul 24, 2024 · 0 comments
Open

Handling nested paths #14

infiniteloopltd opened this issue Jul 24, 2024 · 0 comments

Comments

@infiniteloopltd
Copy link

In some assemblies, there are folders (especially for localization), in which case, you need to create these subfolders;

I used this code'

        print("Extracting %s......." % entry.name)
        # Combine outpath and entry.name
        full_path = os.path.join(outpath, entry.name)

        # Extract the directory part from full_path
        directory = os.path.dirname(full_path)

        # Create the directory if it doesn't exist
        os.makedirs(directory, exist_ok=True)
        wfile = open("%s/%s.dll" % (outpath, entry.name), "wb")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant