Examples of fileExists()


Examples of com.cloud.hypervisor.vmware.mo.DatastoreMO.fileExists()

        return disks;
      }
       
        String datastoreDiskPath = VmwareStorageLayoutHelper.syncVolumeToVmDefaultFolder(
              dcMo, vmMo.getName(), dsMo, volumeTO.getPath());
        if(!dsMo.fileExists(datastoreDiskPath)) {
        s_logger.warn("Volume " + volumeTO.getId() + " does not seem to exist on datastore, out of sync? path: " + datastoreDiskPath);
      }
       
      return new String[] { datastoreDiskPath };
    }
View Full Code Here

Examples of com.hdfsTools.action.upLoadAction.fileExists()

    String dst = dfsfile.getFileUrl(); // 获得当前目录的url
    String filePath = dst + "/" + filename;

    upLoadAction upAction = new upLoadAction();
    // 查找路径filePath对应的文件是否存在
    return upAction.fileExists(filePath);
  }

  @Override
  public long getDeletedFileId(long currentId, String filename) {
    /*
 
View Full Code Here

Examples of com.hdfsTools.dao.upLoadDao.fileExists()

    // new upLoadAction(fsUrl);
  }

  public boolean fileExists(String filePath) {
    upLoadDao upload = new upLoadImpl();
    return upload.fileExists(getConf(), filePath);

  }
}
View Full Code Here

Examples of com.hdfsTools.impl.upLoadImpl.fileExists()

    // new upLoadAction(fsUrl);
  }

  public boolean fileExists(String filePath) {
    upLoadDao upload = new upLoadImpl();
    return upload.fileExists(getConf(), filePath);

  }
}
View Full Code Here

Examples of com.kellerkindt.scs.storage.ShowCaseImport.fileExists()

            ShowCaseStandalone.slog(Level.INFO, "Import Showcase shops.");
           
           
            ShowCaseImport si = new ShowCaseImport(scs);
           
            if(!si.fileExists()){
                Messaging.send(cs, "Could not attach to showcases.csv.  Is it in your ShowCaseStandalone data folder?");
                return true;
            }
           
            // load
View Full Code Here

Examples of com.nirima.jenkins.repo.build.ArtifactRepositoryItem.fileExists()

    public @Override void visitArtifact(MavenBuild build, MavenArtifact artifact)
    {
        // add a Maven 2 compatible artifact entry
        ArtifactRepositoryItem repositoryItem = new ArtifactRepositoryItem(build, artifact, false);
        if (!repositoryItem.fileExists()) {
            return; // skip this artifact, its file was purged
        }
        add(repositoryItem);

        // if this is a snapshot, also add a Maven 3 compatible artifact entry
View Full Code Here

Examples of com.sos.VirtualFileSystem.Interfaces.ISOSVirtualFile.FileExists()

      }
      else {
        strSourceTransferName = getFileNameWithoutPath(strSourceTransferName);
        objSourceTransferFile = objDataSourceClient.getFileHandle(MakeFullPathName(objOptions.SourceDir.Value(), strSourceTransferName));
      }
      this.flgFileExists = objTargetFile.FileExists();
      if (objOptions.DoNotOverwrite() && flgFileExists == true) {
        logger.debug("data-target(-server) reply [filename exists] [" + strTargetFileName + "]: " + objDataTargetClient.getReplyString());
        this.setNotOverwritten();
        return;
      }
View Full Code Here

Examples of com.sos.VirtualFileSystem.Interfaces.ISOSVirtualFile.FileExists()

        if (zeroByteFiles == false) {
          // TODO in die SOSFileList einbauen (SkipZeroByteFiles)
          for (SOSFileListEntry objEntry : objSourceFileList.List()) {
            String strSourceFileName = objEntry.SourceFileName();
            ISOSVirtualFile objVF = objDataSourceClient.getFileHandle(strSourceFileName);
            if (objVF.FileExists()) {
              if (objVF.isEmptyFile()) {
                objEntry.setTransferSkipped();
                if (objOptions.remove_files.value()) {
                  objVF.delete();
                  objEntry.zeroByteCount++;
View Full Code Here

Examples of com.sun.enterprise.tools.common.validation.util.Utils.fileExists()

    public void testCreate() {
        String bundleFile = "com/sun/enterprise/tools/" +               //NOI18N
            "common/validation/Bundle.properties";                      //NOI18N
        Utils utils = new Utils();
        boolean fileExists = utils.fileExists(bundleFile);
        String str =
            BundleReader.getValue("MSG_NumberConstraint_Failure");      //NOI18N
       
        if(fileExists){
            assertTrue(!str.equals("MSG_NumberConstraint_Failure"));    //NOI18N
View Full Code Here

Examples of org.apache.lucene.store.BaseDirectoryWrapper.fileExists()

        System.out.println("TEST: check files: " + ic.getFileNames());
      }
      allFiles.addAll(ic.getFileNames());
      // Make sure no old files were removed
      for(String fileName : allFiles) {
        assertTrue("file " + fileName + " does not exist", d.fileExists(fileName));
      }
      DirectoryReader r2 = DirectoryReader.openIfChanged(r);
      if (r2 != null) {
        r.close();
        r = r2;
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.