How do I get the path for public:// I need to get the path for public:// at runtime. Is there a function I can use to get it?
You can use the file_create_url function.

$uri = 'public://';
$path= file_create_url($uri)