Menu

FTP Server plug-in

billiejoex
2007-09-27
2012-12-08
  • billiejoex

    billiejoex - 2007-09-27

    Hi there,
    I'd like to know if it is possible to write my-own plugin for 7-zip.
    In details I would like to makes the current path accessible through an FTP server I wrote.

    Is 7-zip "plug-in-able" in such way?

     
    • Igor Pavlov

      Igor Pavlov - 2007-09-28

      7-Zip supports plugins.

       
    • billiejoex

      billiejoex - 2007-09-29

      I'm the maintainer of a FTP server library written in Python:
      http://code.google.com/p/pyftpdlib/

      I thought it would be funny to integrate pyftpdlib into 7-zip in form of plug-in to makes the current path accessible through FTP.
      A similar thing has been done for FarManager, a file manager for Windows systems similar to 7-zip:
      http://enforum.farmanager.com/viewtopic.php?t=640
      http://farmanager.com/

      What do you think about this?

       
    • SeldomGood

      SeldomGood - 2007-09-29

      well.. funny it would be, and useful at times, but an ftp virtual filesystem would be better, for I need to down/up load from/to an external ftp server more often.
      Either way, it would be interesting to see how you can make plug-in for 7-zip in python: I do not think it was foreseen.

       
    • billiejoex

      billiejoex - 2007-10-15

      Actually, I have no idea about how doing such a stuff.
      How can I write a plug-in?
      Does it exist some kind of "7-zip API"?

       
      • Igor Pavlov

        Igor Pavlov - 2007-10-17

        - Does it exist some kind of "7-zip API"?

        Yes. But there are no docs. So you must study source code of 7-zip.

         
    • SeldomGood

      SeldomGood - 2007-10-15

      I do not know either, but since third party plug-ins were developed in the past, I guess the answer is yes.
      Notice that the very capability to extract/compress is implemented as a plug-in in the GUI.
      I also fear you will need to read the code of some standard plug-in for reference.
      Indeed, now that I think of it, a plugin to "embedd" the python interpreter could be a first step towards your goal, or do you think it would be overkill?

       
    • billiejoex

      billiejoex - 2007-10-15

      > I do not know either, but since third party
      > plug-ins were developed in the past, I guess
      > the answer is yes.

      Good. The first step is finding out such API.

      > Indeed, now that I think of it, a plugin to
      > "embedd" the python interpreter could be a
      > first step towards your goal, or do you
      > think it would be overkill? 

      I think it would be an overkill.
      Generally the right thing to do in such cases is writing a "wrapper" of the C/C++ API and then access to it directly from Python.

      Dumb example:

      >>> import 7-zipapi
      >>> 7-zipapi.compress('file.ext')

      Regardless of such plug-in in particular it would be useful having a such kind of wrapper in any case.

       

Log in to post a comment.

MongoDB Logo MongoDB