public function unlink($path)
 {
     // The item will be removed from the database, but won't be touched on the owner's filesystem
     $target = $this->datadir . $path;
     // Check if the item is inside a shared folder
     if (OC_Share::getParentFolders($target)) {
         // If entry for item already exists
         if (OC_Share::getItem($target)) {
             OC_Share::unshareFromMySelf($target, false);
         } else {
             OC_Share::pullOutOfFolder($target, $target);
             OC_Share::unshareFromMySelf($target, false);
         }
         // Delete the database entry
     } else {
         OC_Share::unshareFromMySelf($target);
     }
     $this->clearFolderSizeCache($this->getInternalPath($target));
     return true;
 }