I am working on dropboxapi in php and try to check the directory exists or not:
<?php
$Folder = "changed randomly"
$direxists= 'https://www.dropbox.com/home/salesforce%20documents/Opportunities'.$folder;
if(is_dir($direxists))
{
echo "<br/>(IF) Directory Exists";
}
?>