function tweet_feed_check_path in Tweet Feed 7.3
Make sure the directory exists. If not, create it
Parameters
string $uri: The URI location of the path to be created.
3 calls to tweet_feed_check_path()
- tweet_feed_install in ./
tweet_feed.install - Implements hook_install().
- tweet_feed_process_twitter_image in ./
tweet_feed.module - Process Images from URL
- tweet_feed_save_tweet in ./
tweet_feed.module - Save The Tweet (and profile)
File
- ./
tweet_feed.module, line 1324
Code
function tweet_feed_check_path($uri) {
$instance = file_stream_wrapper_get_instance_by_uri($uri);
$real_path = $instance
->realpath();
if (!file_exists($real_path)) {
@mkdir($real_path, 0777, TRUE);
}
return file_exists($real_path);
}