Skip to content

Instantly share code, notes, and snippets.

@jponge
Created January 20, 2011 07:09
Show Gist options
  • Save jponge/787521 to your computer and use it in GitHub Desktop.
Save jponge/787521 to your computer and use it in GitHub Desktop.
/*
* Just run `groovy Sample.groovy` and let the magic happen.
*/
import org.apache.commons.io.FileSystemUtils
@Grab(group="commons-io", module="commons-io", version="2.0.1")
public class Sample {
def run() {
println "Yeah"
println FileSystemUtils.freeSpaceKb()
}
public static void main(String[] args) {
new Sample().run()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment