mirror of
https://github.com/morluto/rea.git
synced 2026-11-03 21:36:13 +00:00
fix(paths): preserve native selections across launch and publication
This commit is contained in:
1 parent
da526fc014
commit
f2b4468183
15 files changed
+536
-95
No files matched your search
@@ -60,6 +60,9 @@ const resolveInputPath = async (
|
||||
selected: string,
|
||||
): Promise<Result<string, PathAdmissionFailure>> => {
|
||||
try {
|
||||
// Darwin realpath can collapse file/.. even though native lookup rejects
|
||||
// that traversal. Admit the selected path before canonicalizing it.
|
||||
await stat(selected);
|
||||
return ok(await realpath(selected));
|
||||
} catch (cause: unknown) {
|
||||
return err(
|
||||
|
||||
Reference in new issue
Block a user