You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ RootBranch }=wn.path// Create a sub directory and add some contentconstcontentPath=wn.path.file(RootBranch.Private,"Sub Directory","hello.txt")awaitfs.write(contentPath,newTextEncoder().encode("👋")// Uint8Array)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Use a path starting with 'private' to create a private file.
The function
path.appData
returns a private file path — an array likeCan also call like this
public files
Use
'public'
as the start of the path. Orread public files
See this example
Beta Was this translation helpful? Give feedback.
All reactions