src/java/fr/jayasoft/ivy/repository/sftp/SFTPRepository.java
/**
     * This method is similar to getResource, except that the returned resource is fully initialised 
     * (resolved in the sftp repository), and that the given string is a full remote path
     * @param path the full remote path in the repository of the resource
     * @return a fully initialised resource, able to answer to all its methods without needing
     * 	any further connection
     */
This method is similar to getResource, except that the returned resource is fully initialised
(resolved in the sftp repository), and that the given string is a full remote path
@param path the full remote path in the repository of the resource
@return a fully initialised resource, able to answer to all its methods without needing
any further connection
This method is similar to getResource except that the returned resource is fully initialised ( resolved in the sftp repository ) and that the given string is a full remote path @param path the full remote path in the repository of the resource @return a fully initialised resource able to answer to all its methods without needing any further connection
public Resource resolveResource(String path) {
		try {
			ChannelSftp c = getSftpChannel(path);
			Collection r = c.ls(path);
			if (r != null) {
				for (Iterator iter = r.iterator(); iter.hasNext();) {
					Object obj=iter.next();
	                if(obj instanceof LsEntry){
	                	LsEntry entry = (LsEntry) obj;
	                	SftpATTRS attrs = entry.getAttrs();
	                	return new BasicResource(path, true, attrs.getSize(), attrs.getMTime() * 1000, false);
	                }
				}
			}
		} catch (Exception e) {
            Message.debug("reolving resource error: "+e.getMessage());
		}
		return new BasicResource(path, false, 0, 0, false);
	}
public Resource resolveResource ( String path ) { try { ChannelSftp c = getSftpChannel ( path ) ; Collection r = c . ls ( path ) ; if ( r != null ) { for ( Iterator iter = r . iterator ( ) ; iter . hasNext ( ) ; ) { Object obj = iter . next ( ) ; if ( obj instanceof LsEntry ) { LsEntry entry = ( LsEntry ) obj ; SftpATTRS attrs = entry . getAttrs ( ) ; return new BasicResource ( path , true , attrs . getSize ( ) , attrs . getMTime ( ) * 1000 , false ) ; } } } } catch ( Exception e ) { Message . debug ( "reolving resource error: " + e . getMessage ( ) ) ; } return new BasicResource ( path , false , 0 , 0 , false ) ; }
This method is similar to getResource, except that the returned resource is fully initialised
 (resolved in the sftp repository), and that the given string is a full remote path
 @param path the full remote path in the repository of the resource
 @return a fully initialised resource, able to answer to all its methods without needing
  any further connection
This method is similar to getResource except that the returned resource is fully initialised ( resolved in the sftp repository ) and that the given string is a full remote path @param path the full remote path in the repository of the resource @return a fully initialised resource able to answer to all its methods without needing any further connection
//silent fail, return unexisting resource
