Skip to content

Crash due to directory named "Info" #7

@RyeGreenwood

Description

@RyeGreenwood

Hi, first of all, thank you for this unpacker! I've been using it for quite some time and it works like a charm.
I recently ran into an issue, though: A mod that I tried to unpack apparently has a Music.txt file in a directory named Info. This clashes with the extension-less Info file that every mod has, however, and causes a crash.
The mod is named "The Eldritch Mod" (eastermod.tmod), the version is 0.1.6. Here's the full output:

eastermod
        Writing: eastermod.XNA.dll
        Writing: eastermod.XNA.pdb
        Writing: eastermod.FNA.dll
        Writing: eastermod.FNA.pdb
        Writing: eastermod.FNA.dll.mdb
        Writing: Info
        Writing: description.txt
        Writing: icon.png
        Writing: README.md
        Writing: Effects/ExampleEffectScreen.xnb
        Writing: Effects/ExampleEffectScreen.fx
        Writing: Effects/PurpleSky.fx
        Writing: Items/Armor/CultC.rawimg
        Writing: Items/Armor/CultH.rawimg
        Writing: Info/Music.txt
Unhandled exception: System.IO.IOException: "C:\Users\...\eastermod\Info" cannot be created, because a file or a directory of the same name already exists.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   at System.IO.Directory.CreateDirectory(String path)
   at tModUnpacker.tModBase.WriteFile(String path, Byte[] data) in D:\csharp\tModUnpacker\tModUnpacker\tModBase.cs:line 93.
   at tModUnpacker.tMod.DumpFile(String outputpath, String filename) in D:\csharp\tModUnpacker\tModUnpacker\tMod.cs:line 106.
   at tModUnpacker.tModBase.DumpFiles(String outputpath, Action`1 func) in D:\csharp\tModUnpacker\tModUnpacker\tModBase.cs:line 121.
   at tModUnpacker.main.Main(String[] args) in D:\csharp\tModUnpacker\tModUnpacker\main.cs:line 51.

Do you have any idea how this could be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions