[ 
https://issues.apache.org/jira/browse/SSHD-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17446270#comment-17446270
 ] 

Sandeep commented on SSHD-1227:
-------------------------------

[~lgoldstein]  Thanks for the quick reply. Is any other way I can meet my 
requirements?

I want to change the long name from the below method only.  
AbstractSftpSubsystemHelper #writeDirEntry
{code:java}
protected void writeDirEntry(ServerSession session, int id, Buffer buffer, int 
index, Path f, String shortName,SftpClient.Attributes attributes)  throws 
IOException {        ..............
        if (version == SftpConstants.SFTP_V3) {            
String longName = SftpHelper.getLongName(shortName, attributes);            
accessor.putRemoteFileName(session, this, f, buffer, longName, false);
}           
 ..............
}{code}

> construct longname with own logic
> ---------------------------------
>
>                 Key: SSHD-1227
>                 URL: https://issues.apache.org/jira/browse/SSHD-1227
>             Project: MINA SSHD
>          Issue Type: Question
>            Reporter: Sandeep
>            Assignee: Lyor Goldstein
>            Priority: Major
>         Attachments: image-2021-11-18-16-36-06-584.png
>
>
> Hi Team,
> I wanted to construct long name by my own logic, I have data in the input 
> attributes map,
> is any way I can do this?  In short, I need to override  SFTPHelper class 
> getLongName method logic.
> !image-2021-11-18-16-36-06-584.png|width=692,height=301!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to