Code example for File

Methods: mkdir

0
    } 
 
    protected void startTouchDB() { 
        try { 
            String serverPath = getServerPath();
            File serverPathFile = new File(serverPath);
            FileDirUtils.deleteRecursive(serverPathFile);
            serverPathFile.mkdir();
            server = new TDServer(getServerPath());
        } catch (IOException e) {
            fail("Creating server caused IOException");
        } 
    } 
 
    protected void stopTouchDB() { 
        if(server != null) {
            server.close();
        } 
    } 
 
    protected void startDatabase() {