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

Lyor Goldstein commented on SSHD-1086:
--------------------------------------

Please note:
{quote}
DirectoryScanner#setIncludes:

Sets the list of include patterns to use. All '/' and '\' characters are 
replaced by
<code>File.separatorChar</code>, so the separator used need not match 
<code>File.separatorChar</code>.
{quote}
(see also DirectoryScanner#normalizePattern}.

When trying to apply it to an SftpFileSystem you are applying the +local+ O/S 
patterns to a +remote+ O/S. That can also explain why we are seeing
{quote}
java.lang.IllegalStateException: basedir \home\nsn\log does not exist
{quote}
Your code seems to run on a Windows machine but is scanning a Linux one. That 
is why it is attempting to locate {{ \home\nsn\log}} instead of 
{{/home/nsn/log}}

> Base dir doesn’t exist issue
> ----------------------------
>
>                 Key: SSHD-1086
>                 URL: https://issues.apache.org/jira/browse/SSHD-1086
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Netram
>            Priority: Critical
>         Attachments: 309002D7-B870-410D-B4A0-A1683166298A.jpeg
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I am getting base dir doesn’t exist error message.
> This error is throwing from ds.scan() method.
> This is working in local env not working in remote server.
> Please see the attached code.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to