Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1262555
write-file.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
271 B
Referenced Files
None
Subscribers
None
write-file.ts
View Options
import
{
promises
as
fs
}
from
"node:fs"
;
import
{
resolve
}
from
"path"
;
export
async
function
writeFile
(
path
:
string
,
content
:
string
)
{
await
fs
.
mkdir
(
resolve
(
path
,
"../"
),
{
recursive
:
true
});
await
fs
.
writeFile
(
path
,
content
);
console
.
log
(
`
${
path
}
created`
);
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Jan 24, 15:15 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
600174
Default Alt Text
write-file.ts (271 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment