Skip to content

This is a simple scala library which can watch over your directory and then register handler to implement subsequent action

Notifications You must be signed in to change notification settings

dashingsat/EasyFileWatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

README

This is simple scala library which can watch your Directories and you can set handlers very easily to implement subsequent actions

Syntax

  EasyFileWatcher.onCreate(<fileName>)(<Function which takes a string argument and returns Unit > )

As an example

 EasyFileWatcher.onCreate("/home/satya/Documents/fw/")(fileName => saveToGoogleDrive(fileName))
 EasyFileWatcher.onDelete("/home/satya/Documents/fw/")(fileName => notify(fileName))
 EasyFileWatcher.onModify("/home/satya/Documents/fw/")(fileName => notify(fileName))

About

This is a simple scala library which can watch over your directory and then register handler to implement subsequent action

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages