Wiimm said:#!/bin/bashzx3junglist said:It's very helpful. I fear that the directory creation still may not be working properly, but I'm not convinced that I'm using the syntax correctly.
*EDIT* I'm not sure if it matters, but if it's not clear from the output, I'm using an ntfs drive to hold my wbfs files.
And what happpens if you use "-D" instead of "-d"?Code:previces@Optimus:~/iso$ wit COPY -B Blah\ Blah\ Blah/Test.iso -d /media/NTFS/wbfs/%I_%T/%I.wbfs *****ÂÂwit: Wiimms ISO Tool v0.26a r568M i386 - Dirk Clemens - 2010-01-05ÂÂ***** * wit SCRUB ISO:Blah Blah Blah/Test.iso -> WBFS:/media/NTFS/wbfs/ABCD01_Blah Blah Blah/ABCD01.wbfs !! wit: ERROR #13 [CAN'T CREATE FILE] in exec_copy() @ wit.c#1118 !!ÂÂÂÂÂÂCan't create temp file: /media/NTFS/wbfs/ABCD01_Blah Blah Blah/ABCD01.wbfs
If -D isn't working too than I will create a debug version for you which dumps a trace with more infos.
Hi Wiimm, -D did work, thank you. I couldn't exactly get my hands around how to use your '-r' recurse function, so I am just using the find function. So now, if I have a folder full of .iso, inside or outside of sub-directories, I just have this simple script to process them. You run like “findiso outputdir [-t]” where outputdir has no trailing slash. -t enables test mode:
CODE
#
# findiso v1.0
find . -name '*.iso' -type f -exec wit COPY -u -R -B $2 {} -D $1/%I_%T/%I.wbfs \;
and what I end up with is neatly organized .wbfs files in my output directory. Very nice. My god do I love linux and GNU tools.