fs

📁 FS: Windows, Linux, Mac Driver

Latest version: 8.6.1 registry icon
Maintenance score
20
Safety score
100
Popularity score
73
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
8.6.1 0 0 0 0 0
8.6.0 0 0 0 0 0
7.11.0 0 0 0 0 0
6.12.0 0 0 0 0 0
6.9.0 0 0 0 0 0
6.1.1 0 0 0 0 0
4.10.1 0 0 0 0 0
4.10.0 0 0 0 0 0
3.4.0 0 0 0 0 0
2.12.0 0 0 0 0 0
2.11.0 0 0 0 0 0
0.9.2 0 0 0 0 0
0.9.1 0 0 0 0 0
0.9.0 0 0 0 0 0

Stability
Latest release:

8.6.1 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

ISC   -   ISC License

Not a wildcard

Not proprietary

OSI Compliant



FS: Native Listener (Mac Windows Linux)

Actions Status Build Status Hex pm

Backends

NOTE: On Linux you need to install inotify-tools.

Subscribe to Notifications

> fs:start_link(fs_watcher, "/Users/5HT/synrc/fs"). % need to start the fs watcher
> fs:subscribe(fs_watcher). % the pid will receive events as messages
> flush().
Shell got {<0.47.0>,
           {fs,file_event},
           {"/Users/5HT/synrc/fs/src/README.md",[closed,modified]}}

List Events from Backend

> fs:known_events(fs_watcher). % returns events known by your backend
[mustscansubdirs,userdropped,kerneldropped,eventidswrapped,
 historydone,rootchanged,mount,unmount,created,removed,
 inodemetamod,renamed,modified,finderinfomod,changeowner,
 xattrmod,isfile,isdir,issymlink,ownevent]

Sample Subscriber

> fs:start_looper(). % starts a sample process that logs events
=INFO REPORT==== 28-Aug-2013::19:36:26 ===
file_event: "/tank/proger/erlfsmon/src/4913" [closed,modified]

Credits

  • Vladimir Kirillov
  • Maxim Sokhatsky
  • Dominic Letz

OM A HUM