mirror of
https://github.com/brufdev/many-notes.git
synced 2026-02-18 08:58:39 -06:00
Fix renaming vault in file system when name was not updated
This commit is contained in:
@@ -27,6 +27,10 @@ class VaultObserver
|
||||
*/
|
||||
public function updating(Vault $vault): void
|
||||
{
|
||||
if (!$vault->isDirty('name')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$relativePath = new GetPathFromUser()->handle();
|
||||
|
||||
if (Storage::disk('local')->exists($relativePath . $vault->name)) {
|
||||
|
||||
Reference in New Issue
Block a user