mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Co-authored-by: Aditya Tripathi <aditya@climactic.co>
16 lines
398 B
PHP
16 lines
398 B
PHP
<?php
|
|
|
|
namespace App\Support;
|
|
|
|
/**
|
|
* A storage adapter that deletes a directory only when it is empty, in one request, so a file that another upload
|
|
* writes at the same time is never deleted.
|
|
*/
|
|
interface DeletesEmptyDirectories
|
|
{
|
|
/**
|
|
* @return bool False when the directory is not empty or could not be deleted.
|
|
*/
|
|
public function deleteEmptyDirectory(string $path): bool;
|
|
}
|