0.1.3 • Published 12 years ago

fsutil v0.1.3

Weekly downloads
36
License
-
Repository
github
Last release
12 years ago

Filesystem Utilities

Filesystem utilities for Node.js.

These are all synchronous functions except cp and cp_r.

Requirements

  • mocha (if you want to run tests)

API

rm_rf(path)

Remove the directory on path recursively.

mkdir_p(path)

Create a directory and all its parent directories.

cp(src, dest, callback)

Copy a file content src to dest.

cp_r(src, dest, callback)

Copy file contents src to dest recursively.

ln_s(src, path)

Creates a symbolic link path which points to src.

ln_sf(src, path)

Creates a symbolic link path which points to src. If path already exists, overwrite it.

cd(path)

Change the current working directory.

pwd()

Get the current working directory.

chmod(mode, path)

Change permission bits on path.

chown(uid, gid, path)

Change the owner of the file or directory on path

chown_R(uid, gid, path)

Change the owner of the file or directory on path recursively.

fwrite_p(path, data)

Write a file on path after create all its parent directories if necessary.

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago