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