Extract question

Any questions? Need some help?
Post Reply
mechtn
Posts: 11
Joined: 28 Sep 2013, 00:01

Extract question

Post 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) ?: []
mechtn
Posts: 11
Joined: 28 Sep 2013, 00:01

Re: Extract question

Post by mechtn »

f.parent

how come i always figure it out AFTER i post on the forums?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Extract question

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply