All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nanocontainer.testmodel..svn.text-base.FileSystemUsing.svn-base Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package org.nanocontainer.testmodel;

import java.io.File;

/**
 * Used for testing permissions.
 *
 * @author Paul Hammant
 * @version $Revision$
 */
public class FileSystemUsing {

    public FileSystemUsing() {
        File afile = File.listRoots()[0];
        System.out.println("--> " + afile.getAbsolutePath());
        new File(afile,"foo-bar-directory").mkdirs();
        throw new RuntimeException("Whoa, should have barfed with access error");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy