You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Leshika Sahu 6A <ne...@gmail.com> on 2020/09/19 06:57:43 UTC

Re: Reminde: How to use ls command with SftpClient Apache library

I didn’t get answer for this issue

Hello Team,

I want to use Apache library for ls Unix command.
Means same list I want to get using Apache library.
So can lease advice.
How to use ls command with SftpClient Apache library.


I want to use Apache library
For matching pattern below:

dir/dir1*/Test.txt
dir/dir1?/Test.txt
dir/*
*
*.*

On Fri, Sep 18, 2020 at 3:14 PM Leshika Sahu 6A <ne...@gmail.com>
wrote:

> Hello Team,
>
> I want to use Apache library for ls Unix command.
> Means same list I want to get using Apache library.
> So can lease advice.
> How to use ls command with SftpClient Apache library.
>
>
> I want to use Apache library
> For matching pattern below:
>
> dir/dir1*/Test.txt
> dir/dir1?/Test.txt
> dir/*
> *
> *.*
>
> Regards
> Netram Sahu
>
> --
> Thanks & Regards,
> Netram Sahu
> +91 9653330834
>
>
>
>
>
> --
Thanks & Regards,
Netram Sahu
+91 9653330834

Re: Reminde: How to use ls command with SftpClient Apache library

Posted by Leshika Sahu 6A <ne...@gmail.com>.
This is also not work.

Work for

home/ns75140/log/Test.txt

Not for this

home/ns75140/log*
home/ns75140/log?
home/ns75140/log*/Test.txt
home/ns75140/log?/Test.txt

Please help

Same
SftpDirentryIntertor peterator= new SftpDirentryIntertor
(sftpclient,remotepath);

This is also work for path

home/ns75140/log
home/ns75140/log

Not for

home/ns75140/log*
home/ns75140/log?

I want code which work for path with sftpclient.

home/ns75140/log*
home/ns75140/log?

So please help me ASAP


On Tue, Sep 22, 2020 at 3:57 AM Guillaume Nodet <gn...@apache.org> wrote:

> Have you used the Java NIO glob api as indicated in this example
> https://javapapers.com/java/glob-with-java-nio/ ?
>
> Le mar. 22 sept. 2020 à 00:12, Leshika Sahu 6A <ne...@gmail.com> a
> écrit :
>
>> Hello GUillaume,
>>
>> This didn’t work for path
>>
>> home/ns75140/log*
>> home/ns75140/log?
>>
>>
>> On Mon, Sep 21, 2020 at 11:44 AM Guillaume Nodet <gn...@apache.org>
>> wrote:
>>
>>> You'll find an example of using the Sftp Client API in the following
>>> test:
>>>
>>>
>>> https://github.com/apache/mina-sshd/blob/master/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/SftpTransferTest.java
>>>
>>> Le lun. 21 sept. 2020 à 03:22, Leshika Sahu 6A <ne...@gmail.com>
>>> a écrit :
>>>
>>>> Hello Team,
>>>>
>>>> I am passing this url from application and based on this url I want to
>>>> get all file from this path.
>>>>
>>>> dir/dir1*/
>>>> dir/dir1?
>>>>
>>>> So Can you please give me example ASAP.
>>>>
>>>>
>>>> On Sun, Sep 20, 2020 at 8:02 AM Leshika Sahu 6A <ne...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hello Guillaume,
>>>>> Thanks for your response.
>>>>>
>>>>> I am using remote server.
>>>>>
>>>>> So please let me know how can I use ls command to fetch file using
>>>>> sftpclinet.
>>>>>
>>>>> Please give me some example ASAP
>>>>>
>>>>>
>>>>> On Sat, Sep 19, 2020 at 8:17 PM Leshika Sahu 6A <ne...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> I am passing this url from application and based on these url want to
>>>>>> Remove Text.txt file.
>>>>>>
>>>>>> dir/dir1*/Test.txt,
>>>>>> dir/dir1?/Test.txt
>>>>>>
>>>>>> How can I do it with Sftpfilesyatem,
>>>>>>
>>>>>> Can you please give me example.
>>>>>>
>>>>>>
>>>>>> On Sat, Sep 19, 2020 at 3:24 PM Guillaume Nodet <gn...@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>> You can use the Sftp FileSystem so you can use the standard Path api
>>>>>>> from the JDK.
>>>>>>>
>>>>>>> Le sam. 19 sept. 2020 à 08:58, Leshika Sahu 6A <
>>>>>>> netram.sahu@gmail.com> a écrit :
>>>>>>>
>>>>>>>> I didn’t get answer for this issue
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hello Team,
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I want to use Apache library for ls Unix command.
>>>>>>>>
>>>>>>>>
>>>>>>>> Means same list I want to get using Apache library.
>>>>>>>>
>>>>>>>>
>>>>>>>> So can lease advice.
>>>>>>>>
>>>>>>>>
>>>>>>>> How to use ls command with SftpClient Apache library.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I want to use Apache library
>>>>>>>>
>>>>>>>>
>>>>>>>> For matching pattern below:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> dir/dir1*/Test.txt
>>>>>>>>
>>>>>>>>
>>>>>>>> dir/dir1?/Test.txt
>>>>>>>>
>>>>>>>>
>>>>>>>> dir/*
>>>>>>>>
>>>>>>>>
>>>>>>>> *
>>>>>>>>
>>>>>>>>
>>>>>>>> *.*
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Sep 18, 2020 at 3:14 PM Leshika Sahu 6A <
>>>>>>>> netram.sahu@gmail.com>
>>>>>>>>
>>>>>>>>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> > Hello Team,
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> > I want to use Apache library for ls Unix command.
>>>>>>>>
>>>>>>>>
>>>>>>>> > Means same list I want to get using Apache library.
>>>>>>>>
>>>>>>>>
>>>>>>>> > So can lease advice.
>>>>>>>>
>>>>>>>>
>>>>>>>> > How to use ls command with SftpClient Apache library.
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> > I want to use Apache library
>>>>>>>>
>>>>>>>>
>>>>>>>> > For matching pattern below:
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> > dir/dir1*/Test.txt
>>>>>>>>
>>>>>>>>
>>>>>>>> > dir/dir1?/Test.txt
>>>>>>>>
>>>>>>>>
>>>>>>>> > dir/*
>>>>>>>>
>>>>>>>>
>>>>>>>> > *
>>>>>>>>
>>>>>>>>
>>>>>>>> > *.*
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> > Regards
>>>>>>>>
>>>>>>>>
>>>>>>>> > Netram Sahu
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> > --
>>>>>>>>
>>>>>>>>
>>>>>>>> > Thanks & Regards,
>>>>>>>>
>>>>>>>>
>>>>>>>> > Netram Sahu
>>>>>>>>
>>>>>>>>
>>>>>>>> > +91 9653330834
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>> > --
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks & Regards,
>>>>>>>>
>>>>>>>>
>>>>>>>> Netram Sahu
>>>>>>>>
>>>>>>>>
>>>>>>>> +91 9653330834
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>> Thanks & Regards,
>>>>>> Netram Sahu
>>>>>> +91 9653330834
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>> Thanks & Regards,
>>>>> Netram Sahu
>>>>> +91 9653330834
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>> Thanks & Regards,
>>>> Netram Sahu
>>>> +91 9653330834
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> ------------------------
>>> Guillaume Nodet
>>>
>>>
>>>
>>> --
>> Thanks & Regards,
>> Netram Sahu
>> +91 9653330834
>>
>>
>>
>>
>>
>>
>
> --
> ------------------------
> Guillaume Nodet
>
>
>
> --
Thanks & Regards,
Netram Sahu
+91 9653330834

Re: Reminde: How to use ls command with SftpClient Apache library

Posted by Guillaume Nodet <gn...@apache.org>.
Have you used the Java NIO glob api as indicated in this example
https://javapapers.com/java/glob-with-java-nio/ ?

Le mar. 22 sept. 2020 à 00:12, Leshika Sahu 6A <ne...@gmail.com> a
écrit :

> Hello GUillaume,
>
> This didn’t work for path
>
> home/ns75140/log*
> home/ns75140/log?
>
>
> On Mon, Sep 21, 2020 at 11:44 AM Guillaume Nodet <gn...@apache.org>
> wrote:
>
>> You'll find an example of using the Sftp Client API in the following test:
>>
>>
>> https://github.com/apache/mina-sshd/blob/master/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/SftpTransferTest.java
>>
>> Le lun. 21 sept. 2020 à 03:22, Leshika Sahu 6A <ne...@gmail.com> a
>> écrit :
>>
>>> Hello Team,
>>>
>>> I am passing this url from application and based on this url I want to
>>> get all file from this path.
>>>
>>> dir/dir1*/
>>> dir/dir1?
>>>
>>> So Can you please give me example ASAP.
>>>
>>>
>>> On Sun, Sep 20, 2020 at 8:02 AM Leshika Sahu 6A <ne...@gmail.com>
>>> wrote:
>>>
>>>> Hello Guillaume,
>>>> Thanks for your response.
>>>>
>>>> I am using remote server.
>>>>
>>>> So please let me know how can I use ls command to fetch file using
>>>> sftpclinet.
>>>>
>>>> Please give me some example ASAP
>>>>
>>>>
>>>> On Sat, Sep 19, 2020 at 8:17 PM Leshika Sahu 6A <ne...@gmail.com>
>>>> wrote:
>>>>
>>>>> I am passing this url from application and based on these url want to
>>>>> Remove Text.txt file.
>>>>>
>>>>> dir/dir1*/Test.txt,
>>>>> dir/dir1?/Test.txt
>>>>>
>>>>> How can I do it with Sftpfilesyatem,
>>>>>
>>>>> Can you please give me example.
>>>>>
>>>>>
>>>>> On Sat, Sep 19, 2020 at 3:24 PM Guillaume Nodet <gn...@apache.org>
>>>>> wrote:
>>>>>
>>>>>> You can use the Sftp FileSystem so you can use the standard Path api
>>>>>> from the JDK.
>>>>>>
>>>>>> Le sam. 19 sept. 2020 à 08:58, Leshika Sahu 6A <ne...@gmail.com>
>>>>>> a écrit :
>>>>>>
>>>>>>> I didn’t get answer for this issue
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hello Team,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I want to use Apache library for ls Unix command.
>>>>>>>
>>>>>>>
>>>>>>> Means same list I want to get using Apache library.
>>>>>>>
>>>>>>>
>>>>>>> So can lease advice.
>>>>>>>
>>>>>>>
>>>>>>> How to use ls command with SftpClient Apache library.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I want to use Apache library
>>>>>>>
>>>>>>>
>>>>>>> For matching pattern below:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> dir/dir1*/Test.txt
>>>>>>>
>>>>>>>
>>>>>>> dir/dir1?/Test.txt
>>>>>>>
>>>>>>>
>>>>>>> dir/*
>>>>>>>
>>>>>>>
>>>>>>> *
>>>>>>>
>>>>>>>
>>>>>>> *.*
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Sep 18, 2020 at 3:14 PM Leshika Sahu 6A <
>>>>>>> netram.sahu@gmail.com>
>>>>>>>
>>>>>>>
>>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> > Hello Team,
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> > I want to use Apache library for ls Unix command.
>>>>>>>
>>>>>>>
>>>>>>> > Means same list I want to get using Apache library.
>>>>>>>
>>>>>>>
>>>>>>> > So can lease advice.
>>>>>>>
>>>>>>>
>>>>>>> > How to use ls command with SftpClient Apache library.
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> > I want to use Apache library
>>>>>>>
>>>>>>>
>>>>>>> > For matching pattern below:
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> > dir/dir1*/Test.txt
>>>>>>>
>>>>>>>
>>>>>>> > dir/dir1?/Test.txt
>>>>>>>
>>>>>>>
>>>>>>> > dir/*
>>>>>>>
>>>>>>>
>>>>>>> > *
>>>>>>>
>>>>>>>
>>>>>>> > *.*
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> > Regards
>>>>>>>
>>>>>>>
>>>>>>> > Netram Sahu
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> > --
>>>>>>>
>>>>>>>
>>>>>>> > Thanks & Regards,
>>>>>>>
>>>>>>>
>>>>>>> > Netram Sahu
>>>>>>>
>>>>>>>
>>>>>>> > +91 9653330834
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> > --
>>>>>>>
>>>>>>>
>>>>>>> Thanks & Regards,
>>>>>>>
>>>>>>>
>>>>>>> Netram Sahu
>>>>>>>
>>>>>>>
>>>>>>> +91 9653330834
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>> Thanks & Regards,
>>>>> Netram Sahu
>>>>> +91 9653330834
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>> Thanks & Regards,
>>>> Netram Sahu
>>>> +91 9653330834
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>> Thanks & Regards,
>>> Netram Sahu
>>> +91 9653330834
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> ------------------------
>> Guillaume Nodet
>>
>>
>>
>> --
> Thanks & Regards,
> Netram Sahu
> +91 9653330834
>
>
>
>


-- 
------------------------
Guillaume Nodet

Re: Reminde: How to use ls command with SftpClient Apache library

Posted by Leshika Sahu 6A <ne...@gmail.com>.
Hello GUillaume,

This didn’t work for path

home/ns75140/log*
home/ns75140/log?


On Mon, Sep 21, 2020 at 11:44 AM Guillaume Nodet <gn...@apache.org> wrote:

> You'll find an example of using the Sftp Client API in the following test:
>
>
> https://github.com/apache/mina-sshd/blob/master/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/SftpTransferTest.java
>
> Le lun. 21 sept. 2020 à 03:22, Leshika Sahu 6A <ne...@gmail.com> a
> écrit :
>
>> Hello Team,
>>
>> I am passing this url from application and based on this url I want to
>> get all file from this path.
>>
>> dir/dir1*/
>> dir/dir1?
>>
>> So Can you please give me example ASAP.
>>
>>
>> On Sun, Sep 20, 2020 at 8:02 AM Leshika Sahu 6A <ne...@gmail.com>
>> wrote:
>>
>>> Hello Guillaume,
>>> Thanks for your response.
>>>
>>> I am using remote server.
>>>
>>> So please let me know how can I use ls command to fetch file using
>>> sftpclinet.
>>>
>>> Please give me some example ASAP
>>>
>>>
>>> On Sat, Sep 19, 2020 at 8:17 PM Leshika Sahu 6A <ne...@gmail.com>
>>> wrote:
>>>
>>>> I am passing this url from application and based on these url want to
>>>> Remove Text.txt file.
>>>>
>>>> dir/dir1*/Test.txt,
>>>> dir/dir1?/Test.txt
>>>>
>>>> How can I do it with Sftpfilesyatem,
>>>>
>>>> Can you please give me example.
>>>>
>>>>
>>>> On Sat, Sep 19, 2020 at 3:24 PM Guillaume Nodet <gn...@apache.org>
>>>> wrote:
>>>>
>>>>> You can use the Sftp FileSystem so you can use the standard Path api
>>>>> from the JDK.
>>>>>
>>>>> Le sam. 19 sept. 2020 à 08:58, Leshika Sahu 6A <ne...@gmail.com>
>>>>> a écrit :
>>>>>
>>>>>> I didn’t get answer for this issue
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hello Team,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I want to use Apache library for ls Unix command.
>>>>>>
>>>>>>
>>>>>> Means same list I want to get using Apache library.
>>>>>>
>>>>>>
>>>>>> So can lease advice.
>>>>>>
>>>>>>
>>>>>> How to use ls command with SftpClient Apache library.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I want to use Apache library
>>>>>>
>>>>>>
>>>>>> For matching pattern below:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> dir/dir1*/Test.txt
>>>>>>
>>>>>>
>>>>>> dir/dir1?/Test.txt
>>>>>>
>>>>>>
>>>>>> dir/*
>>>>>>
>>>>>>
>>>>>> *
>>>>>>
>>>>>>
>>>>>> *.*
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Sep 18, 2020 at 3:14 PM Leshika Sahu 6A <
>>>>>> netram.sahu@gmail.com>
>>>>>>
>>>>>>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> > Hello Team,
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> > I want to use Apache library for ls Unix command.
>>>>>>
>>>>>>
>>>>>> > Means same list I want to get using Apache library.
>>>>>>
>>>>>>
>>>>>> > So can lease advice.
>>>>>>
>>>>>>
>>>>>> > How to use ls command with SftpClient Apache library.
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> > I want to use Apache library
>>>>>>
>>>>>>
>>>>>> > For matching pattern below:
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> > dir/dir1*/Test.txt
>>>>>>
>>>>>>
>>>>>> > dir/dir1?/Test.txt
>>>>>>
>>>>>>
>>>>>> > dir/*
>>>>>>
>>>>>>
>>>>>> > *
>>>>>>
>>>>>>
>>>>>> > *.*
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> > Regards
>>>>>>
>>>>>>
>>>>>> > Netram Sahu
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> > --
>>>>>>
>>>>>>
>>>>>> > Thanks & Regards,
>>>>>>
>>>>>>
>>>>>> > Netram Sahu
>>>>>>
>>>>>>
>>>>>> > +91 9653330834
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> > --
>>>>>>
>>>>>>
>>>>>> Thanks & Regards,
>>>>>>
>>>>>>
>>>>>> Netram Sahu
>>>>>>
>>>>>>
>>>>>> +91 9653330834
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>> Thanks & Regards,
>>>> Netram Sahu
>>>> +91 9653330834
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>> Thanks & Regards,
>>> Netram Sahu
>>> +91 9653330834
>>>
>>>
>>>
>>>
>>>
>>> --
>> Thanks & Regards,
>> Netram Sahu
>> +91 9653330834
>>
>>
>>
>>
>>
>>
>
> --
> ------------------------
> Guillaume Nodet
>
>
>
> --
Thanks & Regards,
Netram Sahu
+91 9653330834

Re: Reminde: How to use ls command with SftpClient Apache library

Posted by Guillaume Nodet <gn...@apache.org>.
You'll find an example of using the Sftp Client API in the following test:

https://github.com/apache/mina-sshd/blob/master/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/SftpTransferTest.java

Le lun. 21 sept. 2020 à 03:22, Leshika Sahu 6A <ne...@gmail.com> a
écrit :

> Hello Team,
>
> I am passing this url from application and based on this url I want to get
> all file from this path.
>
> dir/dir1*/
> dir/dir1?
>
> So Can you please give me example ASAP.
>
>
> On Sun, Sep 20, 2020 at 8:02 AM Leshika Sahu 6A <ne...@gmail.com>
> wrote:
>
>> Hello Guillaume,
>> Thanks for your response.
>>
>> I am using remote server.
>>
>> So please let me know how can I use ls command to fetch file using
>> sftpclinet.
>>
>> Please give me some example ASAP
>>
>>
>> On Sat, Sep 19, 2020 at 8:17 PM Leshika Sahu 6A <ne...@gmail.com>
>> wrote:
>>
>>> I am passing this url from application and based on these url want to
>>> Remove Text.txt file.
>>>
>>> dir/dir1*/Test.txt,
>>> dir/dir1?/Test.txt
>>>
>>> How can I do it with Sftpfilesyatem,
>>>
>>> Can you please give me example.
>>>
>>>
>>> On Sat, Sep 19, 2020 at 3:24 PM Guillaume Nodet <gn...@apache.org>
>>> wrote:
>>>
>>>> You can use the Sftp FileSystem so you can use the standard Path api
>>>> from the JDK.
>>>>
>>>> Le sam. 19 sept. 2020 à 08:58, Leshika Sahu 6A <ne...@gmail.com>
>>>> a écrit :
>>>>
>>>>> I didn’t get answer for this issue
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Hello Team,
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I want to use Apache library for ls Unix command.
>>>>>
>>>>>
>>>>> Means same list I want to get using Apache library.
>>>>>
>>>>>
>>>>> So can lease advice.
>>>>>
>>>>>
>>>>> How to use ls command with SftpClient Apache library.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I want to use Apache library
>>>>>
>>>>>
>>>>> For matching pattern below:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> dir/dir1*/Test.txt
>>>>>
>>>>>
>>>>> dir/dir1?/Test.txt
>>>>>
>>>>>
>>>>> dir/*
>>>>>
>>>>>
>>>>> *
>>>>>
>>>>>
>>>>> *.*
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Sep 18, 2020 at 3:14 PM Leshika Sahu 6A <netram.sahu@gmail.com
>>>>> >
>>>>>
>>>>>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> > Hello Team,
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> > I want to use Apache library for ls Unix command.
>>>>>
>>>>>
>>>>> > Means same list I want to get using Apache library.
>>>>>
>>>>>
>>>>> > So can lease advice.
>>>>>
>>>>>
>>>>> > How to use ls command with SftpClient Apache library.
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> > I want to use Apache library
>>>>>
>>>>>
>>>>> > For matching pattern below:
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> > dir/dir1*/Test.txt
>>>>>
>>>>>
>>>>> > dir/dir1?/Test.txt
>>>>>
>>>>>
>>>>> > dir/*
>>>>>
>>>>>
>>>>> > *
>>>>>
>>>>>
>>>>> > *.*
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> > Regards
>>>>>
>>>>>
>>>>> > Netram Sahu
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> > --
>>>>>
>>>>>
>>>>> > Thanks & Regards,
>>>>>
>>>>>
>>>>> > Netram Sahu
>>>>>
>>>>>
>>>>> > +91 9653330834
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> >
>>>>>
>>>>>
>>>>> > --
>>>>>
>>>>>
>>>>> Thanks & Regards,
>>>>>
>>>>>
>>>>> Netram Sahu
>>>>>
>>>>>
>>>>> +91 9653330834
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>> Thanks & Regards,
>>> Netram Sahu
>>> +91 9653330834
>>>
>>>
>>>
>>>
>>>
>>> --
>> Thanks & Regards,
>> Netram Sahu
>> +91 9653330834
>>
>>
>>
>>
>>
>> --
> Thanks & Regards,
> Netram Sahu
> +91 9653330834
>
>
>
>


-- 
------------------------
Guillaume Nodet

Re: Reminde: How to use ls command with SftpClient Apache library

Posted by Leshika Sahu 6A <ne...@gmail.com>.
Hello Team,

I am passing this url from application and based on this url I want to get
all file from this path.

dir/dir1*/
dir/dir1?

So Can you please give me example ASAP.


On Sun, Sep 20, 2020 at 8:02 AM Leshika Sahu 6A <ne...@gmail.com>
wrote:

> Hello Guillaume,
> Thanks for your response.
>
> I am using remote server.
>
> So please let me know how can I use ls command to fetch file using
> sftpclinet.
>
> Please give me some example ASAP
>
>
> On Sat, Sep 19, 2020 at 8:17 PM Leshika Sahu 6A <ne...@gmail.com>
> wrote:
>
>> I am passing this url from application and based on these url want to
>> Remove Text.txt file.
>>
>> dir/dir1*/Test.txt,
>> dir/dir1?/Test.txt
>>
>> How can I do it with Sftpfilesyatem,
>>
>> Can you please give me example.
>>
>>
>> On Sat, Sep 19, 2020 at 3:24 PM Guillaume Nodet <gn...@apache.org>
>> wrote:
>>
>>> You can use the Sftp FileSystem so you can use the standard Path api
>>> from the JDK.
>>>
>>> Le sam. 19 sept. 2020 à 08:58, Leshika Sahu 6A <ne...@gmail.com>
>>> a écrit :
>>>
>>>> I didn’t get answer for this issue
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Hello Team,
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I want to use Apache library for ls Unix command.
>>>>
>>>>
>>>> Means same list I want to get using Apache library.
>>>>
>>>>
>>>> So can lease advice.
>>>>
>>>>
>>>> How to use ls command with SftpClient Apache library.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I want to use Apache library
>>>>
>>>>
>>>> For matching pattern below:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> dir/dir1*/Test.txt
>>>>
>>>>
>>>> dir/dir1?/Test.txt
>>>>
>>>>
>>>> dir/*
>>>>
>>>>
>>>> *
>>>>
>>>>
>>>> *.*
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Sep 18, 2020 at 3:14 PM Leshika Sahu 6A <ne...@gmail.com>
>>>>
>>>>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> > Hello Team,
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> > I want to use Apache library for ls Unix command.
>>>>
>>>>
>>>> > Means same list I want to get using Apache library.
>>>>
>>>>
>>>> > So can lease advice.
>>>>
>>>>
>>>> > How to use ls command with SftpClient Apache library.
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> > I want to use Apache library
>>>>
>>>>
>>>> > For matching pattern below:
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> > dir/dir1*/Test.txt
>>>>
>>>>
>>>> > dir/dir1?/Test.txt
>>>>
>>>>
>>>> > dir/*
>>>>
>>>>
>>>> > *
>>>>
>>>>
>>>> > *.*
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> > Regards
>>>>
>>>>
>>>> > Netram Sahu
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> > --
>>>>
>>>>
>>>> > Thanks & Regards,
>>>>
>>>>
>>>> > Netram Sahu
>>>>
>>>>
>>>> > +91 9653330834
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> >
>>>>
>>>>
>>>> > --
>>>>
>>>>
>>>> Thanks & Regards,
>>>>
>>>>
>>>> Netram Sahu
>>>>
>>>>
>>>> +91 9653330834
>>>>
>>>>
>>>>
>>>
>>> --
>> Thanks & Regards,
>> Netram Sahu
>> +91 9653330834
>>
>>
>>
>>
>>
>> --
> Thanks & Regards,
> Netram Sahu
> +91 9653330834
>
>
>
>
>
> --
Thanks & Regards,
Netram Sahu
+91 9653330834