MCPcopy Create free account
hub / github.com/porsager/postgres / empty

Function empty

transpile.deno.js:5–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4const std = 'https://deno.land/std@0.132.0/'
5 , empty = x => fs.readdirSync(x).forEach(f => fs.unlinkSync(path.join(x, f)))
6 , ensureEmpty = x => !fs.existsSync(x) ? fs.mkdirSync(x) : empty(x)
7 , root = 'deno'
8 , src = path.join(root, 'src')

Callers 1

ensureEmptyFunction · 0.70

Calls 1

forEachMethod · 0.65

Tested by

no test coverage detected