Package org.maqetta.server

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


      if(projectTemplateDirectoryName!=null && !projectTemplateDirectoryName.equals("")){
        IProjectTemplatesManager projectTemplatesManager = ServerManager.getServerManager().getProjectTemplatesManager();
        IStorage projectTemplatesDirectory = projectTemplatesManager.getProjectTemplatesDirectory();
        IStorage templateDir = projectTemplatesDirectory.newInstance(projectTemplatesDirectory, projectTemplateDirectoryName);
        if(templateDir.exists()) {
          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();
View Full Code Here


      return;
    }
    versionDir.mkdir();

    IStorage userDir = user.getUserDirectory();
    IStorage[] files = userDir.listFiles();
    for (int i = 0; i < files.length; i++) {
      String path = files[i].getAbsolutePath();
      if (files[i].isFile()
          && path.indexOf(IDavinciServerConstants.WORKING_COPY_EXTENSION) < 0) {
        IStorage destination = versionDir.newInstance(files[i].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.