Created
January 20, 2011 07:09
-
-
Save jponge/787521 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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