Package com.knowgate.dfs

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


      try {

        File oCached = new File(sFileDir.substring(7)+File.separator+sCachedFile);

        if (!oCached.exists()) {
          oFS.mkdirs(sFileDir);
        }
        else {
          if (DebugFile.trace) {
            DebugFile.writeln ("file modified " + new Date(oCached.lastModified()).toString());
            DebugFile.writeln ("last modified " + new Date(oDtModified.getTime()).toString());
View Full Code Here


  String sXmlProlog = "<?xml version=\"1.0\" encoding=\""+getEncoding()+"\"?>\n";
  String sNewsGrpXml = oNewsGrp.toXML(oConn);
  String sMonthsWithPosts = Forums.XMLListMonthsWithPosts(oConn, getGuid(), getLanguage());

  FileSystem oFs = new FileSystem();
  try { oFs.mkdirs("file://"+getOutputPath()+"archives"); } catch (Exception ignore) { }

    Properties oProps = new Properties();
  oProps.put("language", getLanguage());
  oProps.put("basehref", getBaseHref());
View Full Code Here

  public Volume setNewVolume(Dms oDms, String sVolumeName, String sVolumesMountBase, String sVolumeSubpath, String sRepositorySubpath, int iMaxDocSize, long lTotalSpace)
    throws FileNotFoundException, IOException, Exception {
    FileSystem oFs = new FileSystem();
    final String sRepositoryFullPath = Gadgets.chomp(sVolumesMountBase,File.separator)+sVolumeSubpath+File.separator+sRepositorySubpath;
    Log.out.debug("FileSystem.mkdirs(file://"+sRepositoryFullPath+")");
    oFs.mkdirs("file://"+sRepositoryFullPath);
    File oFl = new File(sRepositoryFullPath);
    if (!oFl.exists()) throw new FileNotFoundException("Could not create directory "+sRepositoryFullPath);
    VolumeManager oVolm = oDms.getVolumeManager();
    Log.out.debug("VolumeManager.createVolume("+sVolumeName+","+Gadgets.chomp(sVolumesMountBase,File.separator)+sVolumeSubpath+File.separator+","+sRepositorySubpath+","+String.valueOf(iMaxDocSize)+")");
    Volume oVol = oVolm.createVolume(sVolumeName, Gadgets.chomp(sVolumesMountBase,File.separator)+sVolumeSubpath+File.separator, sRepositorySubpath, iMaxDocSize);
View Full Code Here

      }
      if (!bDefaultVolumeExists) {
        sMountBase = Gadgets.chomp(sMountBase, File.separator);
          FileSystem oFs = new FileSystem();
          try {
        oFs.mkdirs("file://"+sMountBase+"default");
      } catch (Exception e) {
        throw new FileNotFoundException("Could not create directory "+sMountBase+"default");
      }
          if (!new File(sMountBase).exists()) throw new FileNotFoundException("Could not create directory "+sMountBase+"default");
          Volume oVol = oVolm.createVolume("Default", sMountBase, "default", 20*1048576);
 
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.