Skip to content

milare/dirscanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** README **
author: Bruno Milare ( milare @ gmail . com)


== INSTALLATION ==
Just install the gem, by doing:
gem install dirscanner-x.x.x.gem

or downloading the source at:
git clone git://github.com/milare/dirscanner.git 


== USING ==
After installing, require dirscanner:

require "dirscanner"

Every time you need to scan a directory just call:

files = Dirscanner.scan( "dir_path" )

where files is a hash of arrays with the keys:
- files["new"]
- files["updated"]
- files["kept"]

The values are arrays with the files full path.
Check out the demo.rb.


About

Dirscanner is a rubygem that monitorates the files in a directory, reporting their states ( new, kept, updated ) each new scan .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages