01: package org.nanocontainer.testmodel;
02:
03: import java.io.File;
04:
05: /**
06: * Used for testing permissions.
07: *
08: * @author Paul Hammant
09: * @version $Revision: 2614 $
10: */
11: public class FileSystemUsing {
12:
13: public FileSystemUsing() {
14: File afile = File.listRoots()[0];
15: System.out.println("--> " + afile.getAbsolutePath());
16: new File(afile, "foo-bar-directory").mkdirs();
17: throw new RuntimeException(
18: "Whoa, should have barfed with access error");
19: }
20:
21: }
|