I am using the library: Kunnu
Trying to create a folder via:
$dbx->createFolder('/NameFolder');
It works.
Only when you re-update, it gives an error:
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://api.dropboxapi.com/2/files/create_folder resulted in a 409 Conflict response: {"error_summary": "path/conflict/folder/..", "error": {".tag": "path", "path": {".tag": "conflict", "conflict": {".tag": (truncated...)
Tried to track down the error via:
try {
$dbx->createFolder('/NameFolder');
} catch(Exception $e) {
}
Did not work out.
What should I do and how do I know if a folder already exists or a file?