Buckets:
| import { W_OK } from 'node:constants' | |
| import { access } from 'node:fs/promises' | |
| export async function isWriteable(directory: string): Promise<boolean> { | |
| try { | |
| await access(directory, W_OK) | |
| return true | |
| } catch (err) { | |
| return false | |
| } | |
| } | |
Xet Storage Details
- Size:
- 253 Bytes
- Xet hash:
- fa69d70d6f8c5b83ad38b25213db178f8dda50dc9ed71f5f79e26be2d31a84a0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.