Examples of mkdir()


Examples of java.io.File.mkdir()

    private URLClassLoader classLoader;

    public void setUp() throws Exception {
        super.setUp();     
        File classFile = new java.io.File(output.getCanonicalPath() + "/classes");
        classFile.mkdir();
        System.setProperty("java.class.path", getClassPath() + classFile.getCanonicalPath()
                           + File.separatorChar);
        classLoader = AnnotationUtil.getClassLoader(Thread.currentThread().getContextClassLoader());
        env.put(ToolConstants.CFG_COMPILE, "compile");
        env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
View Full Code Here

Examples of java.io.File.mkdir()

    String dirName = "C:/temp/aggManyFiles/";
    int n = 20000;

    File dir = new File(dirName);
    if (!dir.exists())
      dir.mkdir();

    int count = 0;
    String stub = "Test";
    NetcdfFile org = NetcdfFile.open("C:/data/CM2006172_180000h_u25h.nc");
    for(int i=0; i<n; i++) {
View Full Code Here

Examples of java.io.File.mkdir()

      listDir = new File("log");
    }
    try {
      // Create the directory if doesn't exist
      if (!listDir.exists()) {
        if (!listDir.mkdir()) {
          throw new IOException("Creating directory failed: " + listDir.getAbsolutePath());
        }
      }
    } catch (IOException exc) {
      logError("Writing deadlink list and error list failed", exc, false);
View Full Code Here

Examples of javax.microedition.io.file.FileConnection.mkdir()

  private static void createFolder(String path) throws Exception
  {
    FileConnection fc = (FileConnection) Connector.open(path, Connector.READ_WRITE);
   
    if (!fc.exists()) {
      fc.mkdir();
      fc.setWritable(true);
    }
   
    fc.close();
  }
View Full Code Here

Examples of jcifs.smb.SmbFile.mkdir()

    public SMBFSEntry addDirectory(final String name) throws IOException {
        try {
            return AccessController.doPrivileged(new PrivilegedExceptionAction<SMBFSEntry>() {
                public SMBFSEntry run() throws Exception {
                    SmbFile dir = new SmbFile(smbFile, dirName(name));
                    dir.mkdir();
                    SMBFSDirectory sdir = new SMBFSDirectory(SMBFSDirectory.this, dir);
                    entries.put(name, sdir);
                    return sdir;
                }
            });
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.FileWrapper.mkdir()

   @Test
   public void testCheckDir_notexists() {

     FileWrapper mockUpdateCoreDirectory = mockHelper.createMock(FileWrapper.class);
     expect(mockUpdateCoreDirectory.exists()).andReturn(false);
     expect(mockUpdateCoreDirectory.mkdir()).andReturn(true);
    
     expect(mockFileWrapperFactory.create(mockUpdateDirectory, UpdateUtil.CORE_ARTIFACT_ID));
     expectLastCall().andReturn(mockUpdateCoreDirectory);
    
    
View Full Code Here

Examples of org.apache.derby.impl.io.vfmem.VirtualFile.mkdir()

    public void testCreateDirInRoot() {
        DataStore store = getStore();
        VirtualFile vFile = new VirtualFile("seg0", store);
        assertFalse(vFile.exists());
        vFile.mkdir();
        assertTrue(vFile.exists());
        assertTrue(vFile.isDirectory());
    }

    public void testCreateInvalidDir() {
View Full Code Here

Examples of org.apache.derby.io.StorageFile.mkdir()

                     public Object run() throws SQLException
                     {
                         StorageFactory storageFactory = getStorageFactory( conn );
                         StorageFile    luceneDir = storageFactory.newStorageFile( Database.LUCENE_DIR );

                         luceneDir.mkdir();
   
                         return null;
                     }
                 }
                 );
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FileObject.mkdir()

            session.write(FtpReplyUtil.translate(session, request, context, FtpReply.REPLY_550_REQUESTED_ACTION_NOT_TAKEN, "MKD.exists", fileName));
            return;
        }
       
        // now create directory
        if(file.mkdir()) {
            session.write(FtpReplyUtil.translate(session, request, context, FtpReply.REPLY_257_PATHNAME_CREATED, "MKD", fileName));
           
            // write log message
            String userName = session.getUser().getName();
            LOG.info("Directory create : " + userName + " - " + fileName);
View Full Code Here

Examples of org.apache.ftpserver.ftplet.FtpFile.mkdir()

                    "MKD.exists", fileName, file));
            return;
        }

        // now create directory
        if (file.mkdir()) {
            session.write(LocalizedFileActionFtpReply.translate(session, request, context,
                    FtpReply.REPLY_257_PATHNAME_CREATED, "MKD", fileName, file));

            // write log message
            String userName = session.getUser().getName();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.