Skip to content

Commit

Permalink
Prevent saving files outside of the project folder
Browse files Browse the repository at this point in the history
adeira-source-id: 0de7465c2aa2b2e13ea1622f8f8a14bcba590daf
  • Loading branch information
itsdouges authored and triplex-bot committed Dec 23, 2023
1 parent 25da75f commit 191c550
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/blue-onions-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@triplex/electron": patch
---

Saving files outside of the project folder is now presented with an error
message instead of an exception.
9 changes: 9 additions & 0 deletions apps/docs/pages/docs/supporting/saving-outside-cwd.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Saving Outside Of The Project Folder
---

Files can only be saved and opened within the opened project folder, this is
because Triplex is scoped to the project folder exclusively and can't access
anything outside it.

To resolve this error instead save the file within the project folder.

0 comments on commit 191c550

Please sign in to comment.