FTP API and S3 API modules proposal

arthurf's picture
· ·

In the ongoing process of simplifying module development and reducing the duplication of effort, I'm proposing creating two modules- FTP API and S3 API. These modules will only provide these services and some configuration API. They will not provide a UI for the actual browsing and moving of files. I see the following functionality for each module:

  • getting file list from specified directory
  • getting file
  • putting file
  • setting file permissions
  • global settings (user/pass, directory)
  • per-user settings (optional)

These modules will provide the stream wrapper layer for compatibility with the Media module

What do people think? Any functionality that I'm missing?

Groups:
Login to post comments

These sound great! I know

aaron's picture
aaron - Mon, 2009-03-09 14:48

These sound great! I know there are a few FTP stream wrappers floating around that could be used for inspiration, notably at http://code.google.com/p/ftp-php/

Might be good for SOC material too. (As would other stream wrappers as well; we're about to open the market for them...)

Aaron Winborn
Drupal Multimedia (book, in October!)
AaronWinborn.com (blog)
Advomatic (work)


If you're trying to list all

mfb's picture
mfb - Mon, 2009-03-09 19:42

If you're trying to list all the FTP operations we might need, don't forget mkdir.


Good call

arthurf's picture
arthurf - Mon, 2009-03-09 19:57

Put bucket would be needed for S3 also. Other functions which should be replicated from the drupal file functions:

  • file_create_filename
  • file_check_location
  • file_create_url

http://24b6.net