From 3da318129cd2b9bb42e379854ed2f01650206ce9 Mon Sep 17 00:00:00 2001 From: KernelDeimos <7225168+KernelDeimos@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:47:25 -0500 Subject: [PATCH] fix(puter.js): check for uuid before relative path --- .../src/modules/FileSystem/utils/getAbsolutePathForApp.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/puter-js/src/modules/FileSystem/utils/getAbsolutePathForApp.js b/src/puter-js/src/modules/FileSystem/utils/getAbsolutePathForApp.js index 4d8d56c6b..658cddeda 100644 --- a/src/puter-js/src/modules/FileSystem/utils/getAbsolutePathForApp.js +++ b/src/puter-js/src/modules/FileSystem/utils/getAbsolutePathForApp.js @@ -7,6 +7,12 @@ const getAbsolutePathForApp = (relativePath) => { return relativePath; } + const reLooksLikeUUID = /^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i; + const isUUID = reLooksLikeUUID.test(relativePath); + if ( isUUID ) { + return relativePath; + } + // if no relative path is provided, use the current working directory if ( ! relativePath ) {