Examples of mkdirs()


Examples of KFM.File.mkdirs()

    */
    private void ensurePathForFileExists(File aFile)
    {
        File tPath = new File(aFile.getParent());
        if(!tPath.exists()) {
            tPath.mkdirs();
        }
    }

    /**
    * Returns the path to the new file.
View Full Code Here

Examples of com.caucho.vfs.Path.mkdirs()

    JniBoot boot = new JniBoot();
    Path logDirectory = getLogDirectory();

    if (boot.isValid()) {
      if (! isLogDirectoryExists) {
        logDirectory.mkdirs();

        boot.chown(logDirectory, server.getUserName(), server.getGroupName());
      }
    }
View Full Code Here

Examples of com.knowgate.dfs.FileSystem.mkdirs()

    String sSourceDir =  sWorkAreasPut + oSource.getString(DB.gu_workarea) + sSep + "apps" + sSep + "Hipermail" + sSep + "html" + sSep + Gadgets.leftPad(String.valueOf(oSource.getInt(DB.pg_mailing)), '0', 5);
    String sTargetDir =  sWorkAreasPut + getString(DB.gu_workarea) + sSep + "apps" + sSep + "Hipermail" + sSep + "html" + sSep + Gadgets.leftPad(String.valueOf(getInt(DB.pg_mailing)), '0', 5);

  try {
    FileSystem oFs = new FileSystem();
    oFs.mkdirs(sProtocol+sTargetDir);
    oFs.copy(sProtocol+sSourceDir, sProtocol+sTargetDir);
  } catch (Exception xcpt) {
    if (DebugFile.trace) {
      DebugFile.decIdent();
      DebugFile.writeln(xcpt.getClass().getName()+" "+xcpt.getMessage());
View Full Code Here

Examples of com.mucommander.commons.file.AbstractFile.mkdirs()

    }

    // No existing user trash was found: create the folder, only if it doesn't already exist.
    if(!trashDir.exists()) {
      try {
        trashDir.mkdirs();
        trashDir.getChild("info").mkdir();
        trashDir.getChild("files").mkdir();

        return trashDir;
      }
View Full Code Here

Examples of com.nexirius.util.XFile.mkdirs()

        if (!targetDir.endsWith(XFile.separator)) {
            targetDir = targetDir + XFile.separator;
        }

        XFile target = new XFile(targetDir);
        target.mkdirs();

        m_root = new XFile(dirname);
        m_files = m_root.getFiles(true);

        for (String fname = m_files.firstItem(); fname != null; fname = m_files.nextItem()) {
View Full Code Here

Examples of com.scaleunlimited.cascading.BasePath.mkdirs()

    public void testFindAllSubdirs() throws Exception {
        // Make a loop dir with a subdir
        String subdirName = "bogus";
        BasePath path0 = CrawlDirUtils.makeLoopDir(_platform, _outputPath, 0);
        BasePath subdirPath0 = _platform.makePath(path0, subdirName);
        subdirPath0.mkdirs();
       
        // And another one without the subdir
        BasePath path1 = CrawlDirUtils.makeLoopDir(_platform, _outputPath, 1);

        BasePath[] allSubdirPathsArr = CrawlDirUtils.findAllSubdirs(_platform, _outputPath, subdirName);
View Full Code Here

Examples of com.sun.enterprise.util.cluster.windows.io.WindowsRemoteFile.mkdirs()

            String remoteDir = remoteInstanceDir + subdir;
            logger.log(Level.FINE, "Trying to create directories for remote path {0}",
                    remoteDir);
            try {
                WindowsRemoteFile f = new WindowsRemoteFile(wrfs, remoteDir);
                f.mkdirs();

                if (!f.exists())
                    throw new IOException(Strings.get("no.mkdir", f.getPath()));
            }
            catch (WindowsException ex) {
View Full Code Here

Examples of com.sun.enterprise.util.io.WindowsRemoteFile.mkdirs()

            String remoteDir = remoteInstanceDir + subdir;
            logger.log(Level.FINE, "Trying to create directories for remote path {0}",
                    remoteDir);
            try {
                WindowsRemoteFile f = new WindowsRemoteFile(wrfs, remoteDir);
                f.mkdirs();

                if (!f.exists())
                    throw new IOException(Strings.get("no.mkdir", f.getPath()));
            }
            catch (WindowsException ex) {
View Full Code Here

Examples of com.xebialabs.overthere.OverthereFile.mkdirs()

            nested3.mkdir();
            fail("Expected not to be able to create a deeply nested directory in one go");
        } catch (RuntimeIOException expected1) {
        }
        assertThat("Expected deeply nested directory to still not exist", nested3.exists(), equalTo(false));
        nested3.mkdirs();
        assertThat("Expected deeply nested directory to exist after invoking mkdirs on it", nested3.exists(), equalTo(true));

        final byte[] contents = ("Contents of the temporary file created at " + System.currentTimeMillis() + "ms since the epoch").getBytes();
        OverthereFile regularFile = tempDir.getFile("somefile.txt");
        OverthereUtils.write(contents, regularFile);
View Full Code Here

Examples of com.zaranux.client.java.io.File.mkdirs()

                          properties.put("@users", "");
                         
                          callback.onSuccess(new ACL(file,properties,aclFile));
                        }else
                        {
                          metaDir.mkdirs(new AsyncCallback<Boolean>()
                              {
                                public void onSuccess(Boolean b)
                                {
                                  Properties properties = new Properties();
                                  properties.put("@public", "");
View Full Code Here
TOP
Copyright © 2015 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.