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 <netram.s...@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 <netram.s...@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 <netram.s...@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 <gno...@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.s...@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.s...@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