luvit-api-design
luvit-api-design copied to clipboard
Utility functions for `fs`
Currently, besides readFile
/writeFile
, the fs
module only provides wrappers for functions which are directly provided by luv. There are, however, some miscellaneous functions that one may find useful. The purpose of this Issue is to serve as a place to suggest and discuss them.
I propose the following functions, some of which have been implemented in coro-fs
in Luvit 2.x.
-
fs.mkdirp(path[, mode])
-
fs.rmrf(path)
-
fs.copydir(path, newPath)
(recursively copies a directory and its files/subdirectories')