> Ciao Alessandro,
> I am interested. =)
Here the two classes, and an example file
auth.py:
http://pastebin.com/BUULZ272
fs.py:
http://pastebin.com/uRARJyuH
server_example.py:
http://pastebin.com/xXgQt0NS
I have thought that a stand-alone module is not a good idea, because
it has only two classes to be used as "tools" to extend pyftpdlib; too
few lines of codes! but a stand-alone project could help us to improve
ad debug it..
Tested with linux (server side) and filezilla client (win + linux).
Other clients seems give errors in some cases (ex. coreftp with spaces
in groups names)
I stopped development it when Filezilla started working. I didn't test
it very much, but it seems work.
There are many things to improve, to clear and comment the code, and
there are some features to be added like:
- give a name to a folder (like samba does); now the folder name is
the "last path name" (ex: /var/lib => "lib" is the name)
- permits to add annidate folder; now I can't add "/var/lib" and "/
var"
- in fs.py there are a spaces replacement for group names.. you can
avoid it, but I don't want to touch it too much in order to give you
the less "bugged" code as possibile. I don't know which could be the
best solution.
- lstat = stat in in fs.py
Enjoy! :-)