Package org.unigrids.services.atomic.types

Examples of org.unigrids.services.atomic.types.GridFileType


   */
  protected boolean isValidDirectory(String remotePath, StorageClient sms){
    boolean result=false;
    if(! ("/".equals(remotePath) || ".".equals(remotePath)) ){
      try{
        GridFileType gft=sms.listProperties(remotePath);
        result=gft.getIsDirectory();
      }catch(Exception ex){
        result=false;
      }
    }
    else result=true;
View Full Code Here


  }
 
  public void perform(StorageClient sms)throws Exception{
    boolean isWildcard=hasWildCards(from);
    boolean isDirectory=false;
    GridFileType gridSource=null;
    if(isWildcard){
      performWildCardExport(sms);
    }
    else {
      //check if source is a directory
      gridSource=sms.listProperties(from);
      isDirectory=gridSource.getIsDirectory();
      if(isDirectory){
        if(forceFileOnly){
          throw new IOException("Source is a directory");
        }
        performDirectoryExport(gridSource, new File(to), sms);
View Full Code Here

  }
 
  public void perform(StorageClient sms)throws Exception{
    boolean isWildcard=hasWildCards(from);
    boolean isDirectory=false;
    GridFileType gridSource=null;
    if(isWildcard){
      performWildCardExport(sms);
    }
    else {
      //check if source is a directory
      gridSource=sms.listProperties(from);
      isDirectory=gridSource.getIsDirectory();
      if(isDirectory){
        if(forceFileOnly){
          throw new IOException("Source is a directory");
        }
        performDirectoryExport(gridSource, new File(to), sms);
View Full Code Here

   */
  protected boolean isValidDirectory(String remotePath, StorageClient sms){
    boolean result=false;
    if(! ("/".equals(remotePath) || ".".equals(remotePath)) ){
      try{
        GridFileType gft=sms.listProperties(remotePath);
        result=gft.getIsDirectory();
      }catch(Exception ex){
        result=false;
      }
    }
    else result=true;
View Full Code Here

TOP

Related Classes of org.unigrids.services.atomic.types.GridFileType

Copyright © 2018 www.massapicom. 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.