You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Massimiliano Ziccardi <ma...@gmail.com> on 2015/11/05 11:49:26 UTC
Custom FileSystemFactory and RMDIR
Hello everybody!
For a project we are developing I'm using your SFTP server implementation
and I needed to implement a custom FileSystemFactory.
I ended in developing :
* MyCustomSshFile
* MyCustomFileSystemFactory
* MyCustomFileSystemView
Everything seems to work great but the directory removal!
In the SshFile interface I have the 'mkdir' but I don't have the 'rmdir'.
Where should I implement the rmdir command ??
Thanks in advance,
Massimiliano
Re: Custom FileSystemFactory and RMDIR
Posted by Stefan Magnus Landrø <st...@gmail.com>.
I'm actually doing the exact thing as you are myself...
Docs: no - check out sources from github and generate javadoc or look
through sources. Look at the implementation found in
https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/common/file/nativefs/NativeFileSystemFactory.java
If you want to root users, you will find an implementation for that too.
Stefan
2015-11-05 12:42 GMT+01:00 Massimiliano Ziccardi <
massimiliano.ziccardi@gmail.com>:
> Hi Stefan, thanks for your answer.
>
> Is there any documentation about how I should implement an SFTP server with
> that version ?
>
> All the documentation and references I found on the apache site refers to
> version 0.14.0 (https://mina.apache.org/sshd-project/downloads.html)
>
> Thanks a lot,
> Massimiliano
>
> 2015-11-05 11:29 GMT+00:00 Stefan Magnus Landrø <st...@gmail.com>:
>
> > You ought to use 1.0 instead - you'll find it in maven central. It uses
> the
> > standard filesystem provider interface:
> >
> >
> https://github.com/apache/mina-sshd/tree/master/sshd-core/src/main/java/org/apache/sshd/common/file
> >
> >
> > 2015-11-05 12:17 GMT+01:00 Massimiliano Ziccardi <
> > massimiliano.ziccardi@gmail.com>:
> >
> > > I'm using sshd-sftp 0.11.0 and sshd-core-0.11.0 since those are the
> > > versions I found on the maven repository
> > >
> > > 2015-11-05 11:12 GMT+00:00 Stefan Magnus Landrø <
> stefan.landro@gmail.com
> > >:
> > >
> > > > You'ree using sshd 1.0, right?
> > > >
> > > > 2015-11-05 11:49 GMT+01:00 Massimiliano Ziccardi <
> > > > massimiliano.ziccardi@gmail.com>:
> > > >
> > > > > Hello everybody!
> > > > >
> > > > > For a project we are developing I'm using your SFTP server
> > > implementation
> > > > > and I needed to implement a custom FileSystemFactory.
> > > > >
> > > > > I ended in developing :
> > > > > * MyCustomSshFile
> > > > > * MyCustomFileSystemFactory
> > > > > * MyCustomFileSystemView
> > > > >
> > > > > Everything seems to work great but the directory removal!
> > > > >
> > > > > In the SshFile interface I have the 'mkdir' but I don't have the
> > > 'rmdir'.
> > > > >
> > > > > Where should I implement the rmdir command ??
> > > > >
> > > > > Thanks in advance,
> > > > > Massimiliano
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > BEKK Open
> > > > http://open.bekk.no
> > > >
> > > > TesTcl - a unit test framework for iRules
> > > > http://testcl.com
> > > >
> > >
> >
> >
> >
> > --
> > BEKK Open
> > http://open.bekk.no
> >
> > TesTcl - a unit test framework for iRules
> > http://testcl.com
> >
>
--
BEKK Open
http://open.bekk.no
TesTcl - a unit test framework for iRules
http://testcl.com
Re: Custom FileSystemFactory and RMDIR
Posted by Massimiliano Ziccardi <ma...@gmail.com>.
Hi Stefan, thanks for your answer.
Is there any documentation about how I should implement an SFTP server with
that version ?
All the documentation and references I found on the apache site refers to
version 0.14.0 (https://mina.apache.org/sshd-project/downloads.html)
Thanks a lot,
Massimiliano
2015-11-05 11:29 GMT+00:00 Stefan Magnus Landrø <st...@gmail.com>:
> You ought to use 1.0 instead - you'll find it in maven central. It uses the
> standard filesystem provider interface:
>
> https://github.com/apache/mina-sshd/tree/master/sshd-core/src/main/java/org/apache/sshd/common/file
>
>
> 2015-11-05 12:17 GMT+01:00 Massimiliano Ziccardi <
> massimiliano.ziccardi@gmail.com>:
>
> > I'm using sshd-sftp 0.11.0 and sshd-core-0.11.0 since those are the
> > versions I found on the maven repository
> >
> > 2015-11-05 11:12 GMT+00:00 Stefan Magnus Landrø <stefan.landro@gmail.com
> >:
> >
> > > You'ree using sshd 1.0, right?
> > >
> > > 2015-11-05 11:49 GMT+01:00 Massimiliano Ziccardi <
> > > massimiliano.ziccardi@gmail.com>:
> > >
> > > > Hello everybody!
> > > >
> > > > For a project we are developing I'm using your SFTP server
> > implementation
> > > > and I needed to implement a custom FileSystemFactory.
> > > >
> > > > I ended in developing :
> > > > * MyCustomSshFile
> > > > * MyCustomFileSystemFactory
> > > > * MyCustomFileSystemView
> > > >
> > > > Everything seems to work great but the directory removal!
> > > >
> > > > In the SshFile interface I have the 'mkdir' but I don't have the
> > 'rmdir'.
> > > >
> > > > Where should I implement the rmdir command ??
> > > >
> > > > Thanks in advance,
> > > > Massimiliano
> > > >
> > >
> > >
> > >
> > > --
> > > BEKK Open
> > > http://open.bekk.no
> > >
> > > TesTcl - a unit test framework for iRules
> > > http://testcl.com
> > >
> >
>
>
>
> --
> BEKK Open
> http://open.bekk.no
>
> TesTcl - a unit test framework for iRules
> http://testcl.com
>
Re: Custom FileSystemFactory and RMDIR
Posted by Stefan Magnus Landrø <st...@gmail.com>.
You ought to use 1.0 instead - you'll find it in maven central. It uses the
standard filesystem provider interface:
https://github.com/apache/mina-sshd/tree/master/sshd-core/src/main/java/org/apache/sshd/common/file
2015-11-05 12:17 GMT+01:00 Massimiliano Ziccardi <
massimiliano.ziccardi@gmail.com>:
> I'm using sshd-sftp 0.11.0 and sshd-core-0.11.0 since those are the
> versions I found on the maven repository
>
> 2015-11-05 11:12 GMT+00:00 Stefan Magnus Landrø <st...@gmail.com>:
>
> > You'ree using sshd 1.0, right?
> >
> > 2015-11-05 11:49 GMT+01:00 Massimiliano Ziccardi <
> > massimiliano.ziccardi@gmail.com>:
> >
> > > Hello everybody!
> > >
> > > For a project we are developing I'm using your SFTP server
> implementation
> > > and I needed to implement a custom FileSystemFactory.
> > >
> > > I ended in developing :
> > > * MyCustomSshFile
> > > * MyCustomFileSystemFactory
> > > * MyCustomFileSystemView
> > >
> > > Everything seems to work great but the directory removal!
> > >
> > > In the SshFile interface I have the 'mkdir' but I don't have the
> 'rmdir'.
> > >
> > > Where should I implement the rmdir command ??
> > >
> > > Thanks in advance,
> > > Massimiliano
> > >
> >
> >
> >
> > --
> > BEKK Open
> > http://open.bekk.no
> >
> > TesTcl - a unit test framework for iRules
> > http://testcl.com
> >
>
--
BEKK Open
http://open.bekk.no
TesTcl - a unit test framework for iRules
http://testcl.com
Re: Custom FileSystemFactory and RMDIR
Posted by Massimiliano Ziccardi <ma...@gmail.com>.
I'm using sshd-sftp 0.11.0 and sshd-core-0.11.0 since those are the
versions I found on the maven repository
2015-11-05 11:12 GMT+00:00 Stefan Magnus Landrø <st...@gmail.com>:
> You'ree using sshd 1.0, right?
>
> 2015-11-05 11:49 GMT+01:00 Massimiliano Ziccardi <
> massimiliano.ziccardi@gmail.com>:
>
> > Hello everybody!
> >
> > For a project we are developing I'm using your SFTP server implementation
> > and I needed to implement a custom FileSystemFactory.
> >
> > I ended in developing :
> > * MyCustomSshFile
> > * MyCustomFileSystemFactory
> > * MyCustomFileSystemView
> >
> > Everything seems to work great but the directory removal!
> >
> > In the SshFile interface I have the 'mkdir' but I don't have the 'rmdir'.
> >
> > Where should I implement the rmdir command ??
> >
> > Thanks in advance,
> > Massimiliano
> >
>
>
>
> --
> BEKK Open
> http://open.bekk.no
>
> TesTcl - a unit test framework for iRules
> http://testcl.com
>
Re: Custom FileSystemFactory and RMDIR
Posted by Stefan Magnus Landrø <st...@gmail.com>.
You'ree using sshd 1.0, right?
2015-11-05 11:49 GMT+01:00 Massimiliano Ziccardi <
massimiliano.ziccardi@gmail.com>:
> Hello everybody!
>
> For a project we are developing I'm using your SFTP server implementation
> and I needed to implement a custom FileSystemFactory.
>
> I ended in developing :
> * MyCustomSshFile
> * MyCustomFileSystemFactory
> * MyCustomFileSystemView
>
> Everything seems to work great but the directory removal!
>
> In the SshFile interface I have the 'mkdir' but I don't have the 'rmdir'.
>
> Where should I implement the rmdir command ??
>
> Thanks in advance,
> Massimiliano
>
--
BEKK Open
http://open.bekk.no
TesTcl - a unit test framework for iRules
http://testcl.com