--
You received this message because you are subscribed to the "Python FTP server library" project group:
http://code.google.com/p/pyftpdlib/
To post to this group, send email to pyft...@googlegroups.com
To unsubscribe from this group, send email to pyftpdlib-...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyftpdlib
PS! Do you have any example on how to serve a virtual filesystem using
pyftpdlib?
Regards,
Thomas Weholt
--
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org
AbstractedFS class has been overridden in various ways in different projects.
I can't remember which ones exactly but you might want to take a look at:
http://code.google.com/p/pyftpdlib/wiki/Adoptions
Also:
https://groups.google.com/forum/#!searchin/pyftpdlib/database/pyftpdlib/Cmcriwoybzw/oLLtmuhxgFEJ
https://groups.google.com/forum/#!searchin/pyftpdlib/database/pyftpdlib/buePrncaNT4/0D2gsnvGR9kJ
Basically what you need to do is overriding the original methods such
as listdir(), mkdir() etc. in order to change the default logic (db
backends are a typical example).
Just keep in mind that sendfile() is going to work with regular file
objects only (the instance returned by open() builtin).
It's not gonna work, for example, with a StringIO object:
http://code.google.com/p/pyftpdlib/wiki/FAQ#sendfile()
Regards,
--- Giampaolo