Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adamh-rinotify

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adamh-rinotify

  • 0.9.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Example usage:

rinotify = RInotify.new rinotify.add_watch(ARGV[0], RInotify::MODIFY | RInotify::DELETE_SELF)

has_events = rinotify.wait_for_events(5)
if has_events # iterate through events rinotify.each_event {|revent|

  # check if the event we received was MODIFY or DELETE_SELF
  if revent.check_mask(RInotify::MODIFY)
    puts "file was modified"
  elsif revent.check_mask(RInotify::DELETE_SELF)
    puts "file was deleted"
  end
}

else # no events were received in the number of seconds specified in wait_for_events above puts "Timed out" end

close and clean up

rinotify.close

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc