Page 1 of 1

Extract question

Posted: 07 Oct 2013, 01:06
by mechtn
I want to extract to the root folder that my RAR files are also located. What do I change the output to? I've tried all sorts of stuff and I'm not having any luck!

def extractFiles = extract(file: f, output: new File(f.dir.name), conflict: 'skip', filter: { it.isArchive() || it.isVideo() || it.isSubtitle() || (music && it.isAudio()) }, forceExtractAll: true) ?: []

Re: Extract question

Posted: 07 Oct 2013, 01:21
by mechtn
f.parent

how come i always figure it out AFTER i post on the forums?

Re: Extract question

Posted: 07 Oct 2013, 04:09
by rednoah
Just check the Java/Groovy API docs. ;)

f is a File object, so => http://docs.oracle.com/javase/7/docs/ap ... /File.html