Skip to content

Fix target directory creation when a root path is specified.#39

Merged
mach-kernel merged 1 commit intomach-kernel:masterfrom
inexorabletash:dirfix
Oct 4, 2022
Merged

Fix target directory creation when a root path is specified.#39
mach-kernel merged 1 commit intomach-kernel:masterfrom
inexorabletash:dirfix

Conversation

@inexorabletash
Copy link
Copy Markdown
Contributor

Fixes #38

@inexorabletash
Copy link
Copy Markdown
Contributor Author

Line endings, grr... will fix.

@mach-kernel
Copy link
Copy Markdown
Owner

Thanks a lot! The change works.

$ ./bin/release/cadius extractfile ../abc.2mg /XYZ/hello /tmp/foo                                                                                                                                
./bin/release/cadius v 1.4.5 (c) Brutal Deluxe 2011-2013.
  - Extract file '/XYZ/hello'
  Error : Can't create file 'hello' on disk at location '/tmp/foo/hello#060803'.
$ ./bin/release/cadius extractfile ../abc.2mg /XYZ/hello /tmp/foo                                                                                                                                
./bin/release/cadius v 1.4.5 (c) Brutal Deluxe 2011-2013.
  - Extract file '/XYZ/hello'
hello=Type(06),AuxType(0803),VersionCreate(00),MinVersion(FC),Access(C3),FolderInfo1(000000000000000000000000000000000000),FolderInfo2(000000000000000000000000000000000000)

$ tree /tmp/foo
/tmp/foo
├── _FileInformation.txt
└── hello#060803

@mach-kernel mach-kernel merged commit bcac49a into mach-kernel:master Oct 4, 2022
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

Successfully merging this pull request may close these issues.

Bogus directories created if absolute path passed

2 participants