Add saving all files and folders to the filesystem

This commit is contained in:
brufdev
2025-01-18 19:10:40 +00:00
parent f257102768
commit 4dac1577e3
15 changed files with 203 additions and 49 deletions
+3 -3
View File
@@ -34,11 +34,11 @@ class FileController extends Controller
}
$currentPath = $node->ancestorsAndSelf()->get()->last()->full_path;
$path = (new ResolveTwoPaths())->handle($currentPath, $request->path);
$path = new ResolveTwoPaths()->handle($currentPath, $request->path);
}
$node = (new GetVaultNodeFromPath())->handle($vault->id, $path);
$relativePath = (new GetPathFromVaultNode())->handle($node);
$node = new GetVaultNodeFromPath()->handle($vault->id, $path);
$relativePath = new GetPathFromVaultNode()->handle($node);
$absolutePath = Storage::disk('local')->path($relativePath);
ob_end_clean();