mirror of
https://github.com/brufdev/many-notes.git
synced 2026-04-29 05:49:10 -05:00
Add saving all files and folders to the filesystem
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user