Skip to content

mafintosh/difffs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

difffs

Fuse based filesystem that notifies you when changes happen

npm install -g difffs

Usage

difffs [directory] [mountpoint]

For example to mount your home folder to /tmp/mnt do

mkdir /tmp/mnt
difffs ~ /tmp/mnt

Now if you navigate to /tmp/mnt and edit/create a file or a folder the above command will print out the change

Programmatic API

You can also use it as a node module

var difffs = require('difffs')

// diff is a readable stream of changes
var diff = difffs('/Users/maf', '/tmp/mnt')

// remember to drain the stream - otherwise the fs will block
diff.on('data', function (change) {
  console.log('the filesystem changed', change)
})

Dependencies

See the fuse-bindings requirements

License

MIT

About

fuse based filesystem that notifies you when changes happen

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published