FileUtils noop?

Discussion in 'Ruby' started by Roger Pack, Dec 3, 2009.

  1. Roger Pack

    Roger Pack Guest

    Roger Pack, Dec 3, 2009
    #1
    1. Advertising

  2. Roger Pack

    Luis Lavena Guest

    On Dec 3, 1:50 pm, Roger Pack <> wrote:
    > http://ruby-doc.org/core/classes/FileUtils.html#M004315
    >
    > states that some methods can accept a :noop flag
    >
    > Any guesses why this would ever be useful?
    >


    For a dry-run. Like creating a directory, copying files but actually
    not doing anything, just the output of the actions but not the
    consequences.

    --
    Luis Lavena
    Luis Lavena, Dec 3, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Hunter

    debug function -> noop

    John Hunter, Jun 24, 2004, in forum: C++
    Replies:
    3
    Views:
    2,339
    Gernot Frisch
    Jun 24, 2004
  2. mahesh
    Replies:
    1
    Views:
    607
    Andrew Thompson
    Dec 7, 2006
  3. Trent Buck

    noop comparator for qsort

    Trent Buck, Nov 14, 2004, in forum: C Programming
    Replies:
    17
    Views:
    700
    Arthur J. O'Dwyer
    Nov 16, 2004
  4. Grzegorz Chrupala
    Replies:
    2
    Views:
    194
    Grzegorz Chrupala
    Jun 30, 2003
  5. Chad Fowler

    Fileutils.cp bug?

    Chad Fowler, Nov 17, 2003, in forum: Ruby
    Replies:
    2
    Views:
    163
Loading...

Share This Page