Package org.maqetta.server

Examples of org.maqetta.server.IStorage.mkdirs()


  public boolean mkdirs() throws IOException {
    try {
      IStorage parent = this.getParentFile();
      if (parent != null && !parent.exists()) {
        parent.mkdirs();
      }
      // if(this.store.fetchInfo().isDirectory())
      this.store.mkdir(EFS.NONE, null);
    } catch (CoreException e) {
      throw new IOException(e);
View Full Code Here


       
      }else if(f.isVirtual()){
       
        IStorage file = this.store.create(path);
        if(f.isDirectory())
          file.mkdirs();
        f = new VOrionResource(file, parent, segment);
        parent.add(f);
       
      }
      parent = f;
View Full Code Here

          IStorage[] files = templateDir.listFiles();
          for (int i = 0; i < files.length; i++) {
            IStorage file = files[i];
            if(file.isDirectory() && file.getName().equals(IDavinciServerConstants.DOT_SETTINGS)){
              IStorage destinationDir = projectDir.newInstance(projectDir, IDavinciServerConstants.DOT_SETTINGS);
              destinationDir.mkdirs();
              IStorage[] dotSettingsFiles = file.listFiles();
              for(int j = 0; j < dotSettingsFiles.length; j++){
                IStorage settingsFile = dotSettingsFiles[j];
                IStorage destination = file.newInstance(file, settingsFile.getName());
                if(settingsFile.getName().equals(IDavinciServerConstants.LIBS_SETTINGS) &&
View Full Code Here

              // Eclipse projects have a .project file. Don't copy the cloned project's .project file
              // into the new project - if the new project is an Eclipse project, other code adds the .project file.
              continue;
            }else if(file.isDirectory() && file.getName().equals(IDavinciServerConstants.DOT_SETTINGS)){
              IStorage destinationDir = projectDir.newInstance(projectDir, IDavinciServerConstants.DOT_SETTINGS);
              destinationDir.mkdirs();
              IStorage[] dotSettingsFiles = file.listFiles();
              for(int j = 0; j < dotSettingsFiles.length; j++){
                IStorage settingsFile = dotSettingsFiles[j];
                if(settingsFile.getName().equals(IDavinciServerConstants.LIBS_SETTINGS)){
                  IStorage destination = destinationDir.newInstance(destinationDir, settingsFile.getName());
View Full Code Here

    DocumentBuilderFactory builderFactory = DocumentBuilderFactory
        .newInstance();
    DocumentBuilder builder = builderFactory.newDocumentBuilder();

    if (!parent.exists())
      parent.mkdirs();
    if (!commentFile.exists()) {
      // If not exist, just create it.
      commentFile.createNewFile();
    } else {
      // If exist, parse it.
View Full Code Here

   */
  public void addBaseSettings(String base) throws IOException {
    IStorage baseFile = userDirectory.newInstance(this.userDirectory, base);
    if(!isValid(baseFile.getAbsolutePath())) return;
    IStorage settings = userDirectory.newInstance(baseFile, IDavinciServerConstants.SETTINGS_DIRECTORY_NAME);
    settings.mkdirs();
   
    LibrarySettings ls = this.getLibSettings(base);
    ls.save();
    ILibraryFinder[] finders = this.getFinders(base);
    for(int i=0;i<finders.length;i++){
View Full Code Here

    IStorage baseFile = userDirectory.newInstance(this.userDirectory,base);
    IStorage settingsDirectory = userDirectory.newInstance(baseFile,IDavinciServerConstants.SETTINGS_DIRECTORY_NAME);
    if(!isValid(settingsDirectory.getAbsolutePath())) return null;
   
    if(!settingsDirectory.exists())
      settingsDirectory.mkdirs();
   

    return settingsDirectory;
  }
 
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.