Opening an URL with a proxy

Set proxy config.

(more…)

Save URL to file

Simple example how to save an image from the net to a local file.
(more…)

Search in zipfile

This example will search for 1.txt in the zipfile test.zip and print out the result.

(more…)

Filename filter

This shows the usage of the Java FilenameFilter with groovy.
(more…)

List filesystem roots

This shows how to use the function in groovy.
(more…)

List directory contents

This lists all files in a directory.
(more…)

Get all files of a specific type

This snippet shows howto get all *.txt files under the “test” directory.
(more…)

List files recursively

This shows how to list all files and directories under the current directory.
(more…)

List all subdirectories

Howto list all subdirectories under the current directory.
(more…)

List directories recursively

The following groovy snippet lists all subdirectories of the current directory.
(more…)