Feeds directory parser
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
Feeds directory parser collects fetched file's metadata like name, size, owner etc. and pass it towards to processors.
My main goal is to import local (server) files (images) as nodes and build galleries. If it is possible to read directory name, it could be a gallery name, and file owner could be drupal node creator.
Usage:
Create a new feeds importer. On settings choose "Use standalone form" for Attach to content type. Set fetcher to File upload. On File upload settings check "Supply path to file or directory directly". Set parser to File metadata parser. No settings yet. Set Processor to Node processor. On settings chose a node type. On mapping set File name and File uri to Title and image field or file field target.
On server in sites/example.com/files create a directory and add image files to it. Go to http://example.com/import and choose new importer. For path specify public://[your directory] and push Import. There should be new content on your site with attached image.
Development:
API: http://api.drupal.org/api/drupal/includes--file.inc/group/file/7
Drupal&files: http://drupal.org/node/877212
PHP file functions: http://php.net/manual/en/function.file.php
