I'm trying to create a new node for every file thats in a specific folder using Drupal 7.
A good example of what I'm trying to create is Youtube.
When I paste a video with the .mp4 extension in a specific folder, I want Drupal to scan that folder (I will tell Drupal when to scan, so this doesn't have to happen automatically), and create a node with that video in it. I will manually set the title, description, etc... myself using the admin interface, and publish it.
I know my way around in Drupal, and its modules, but I'm not an expert. I've been googling for awhile now and the only thing I could find was:
file_scan_directory($dir, $mask, $options = array(), $depth = 0)
I'm not asking for a complete copy/paste solution, I was just hoping someone could give me some tips, useful links or tutorials on how to do this.