FTP API and S3 API modules proposal

Events happening in the community are now at Drupal community events on www.drupal.org.
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?

Comments

These sound great! I know

aaron's picture

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)

Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic

If you're trying to list all

mfb's picture

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

Good call

arthurf's picture

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

Media

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: