Socket
Book a DemoInstallSign in
Socket

em-file-utils

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

em-file-utils

1.1.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

EventMachine FileUtils

em-file-utils allows base file operations using UNIX commands such as standard library FileUtils, but returns CommandBuilder objects which allows wide customizations to final call and asynchronous evented EventMachine interface support (although it isn't required). UNIX/GNU based systems only are supported.

Some example:

# synchronous
require "em-file-utils"
output = EM::FileUtils::touch("./~test1").execute!

# asynchronous
EM::run   # eventmachine
    EM::FileUtils::touch("./~test1").execute do |output|
        # ...
    end
end

It returns CommandBuilder object which allows it to be flexible:

cmd = EM::FileUtils::touch("./~test1")
cmd.params.unshift(:a)      # change access time only 
cmd.execute!

Copyright © 2011 – 2015 Martin Poljak. See LICENSE.txt for further details.

FAQs

Package last updated on 19 Jul 2015

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.