123456789_123456789_123456789_123456789_123456789_

Module: FileUtils::DryRun

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
Defined in: lib/fileutils.rb

Overview

This module has all methods of ::FileUtils module, but never changes files/directories, with printing message before acting. This equates to passing the :noop and :verbose flag to methods in ::FileUtils.

Constant Summary

::FileUtils - Included

LOW_METHODS, METHODS, OPT_TABLE, VERSION

Instance Attribute Summary

Instance Method Summary

LowMethods - Included

::FileUtils - Included

#fu_clean_components, #fu_split_path,
#fu_starting_path?

See additional method definition at line 2558.

#cd

Changes the working directory to the given dir, which should be interpretable as a path:

#chdir

Alias for #cd.

#chmod

Changes permissions on the entries at the paths given in list (a single path or an array of paths) to the permissions given by mode; returns list if it is an array, [list] otherwise:

#chmod_R

Like chmod, but changes permissions recursively.

#chown

Changes the owner and group on the entries at the paths given in list (a single path or an array of paths) to the given user and group; returns list if it is an array, [list] otherwise:

#chown_R

Like chown, but changes owner and group recursively.

#cmp

Alias for #compare_file.

#compare_file

Returns true if the contents of files a and b are identical, false otherwise.

#compare_stream

Returns true if the contents of streams a and b are identical, false otherwise.

#copy

Alias for #cp.

#copy_entry

Recursively copies files from src to dest.

#copy_file

Copies file from src to dest, which should not be directories.

#copy_stream

Copies IO stream src to IO stream dest via {IO.copy_stream}.

#cp

Copies files.

#cp_lr

Creates hard links.

#cp_r

Recursively copies files.

#getwd

Alias for #pwd.

#identical?

Alias for #compare_file.

#install

Copies a file entry.

#link

Alias for #ln.

#link_entry

Creates hard links; returns nil.

#ln

Creates hard links.

#ln_s
#ln_sf

Like ln_s, but always with keyword argument force: true given.

#ln_sr

Like ln_s, but create links relative to dest.

#makedirs

Alias for #mkdir_p.

#mkdir

Creates directories at the paths in the given list (a single path or an array of paths); returns list if it is an array, [list] otherwise.

#mkdir_p

Creates directories at the paths in the given list (a single path or an array of paths), also creating ancestor directories as needed; returns list if it is an array, [list] otherwise.

#mkpath

Alias for #mkdir_p.

#move

Alias for #mv.

#mv

Moves entries.

#pwd

Returns a string containing the path to the current directory:

#remove

Alias for #rm.

#remove_dir

Recursively removes the directory entry given by path, which should be the entry for a regular file, a symbolic link, or a directory.

#remove_entry

Removes the entry given by path, which should be the entry for a regular file, a symbolic link, or a directory.

#remove_entry_secure

Securely removes the entry given by path, which should be the entry for a regular file, a symbolic link, or a directory.

#remove_file

Removes the file entry given by path, which should be the entry for a regular file or a symbolic link.

#rm

Removes entries at the paths in the given list (a single path or an array of paths) returns list, if it is an array, [list] otherwise.

#rm_f

Equivalent to:

#rm_r

Removes entries at the paths in the given list (a single path or an array of paths); returns list, if it is an array, [list] otherwise.

#rm_rf

Equivalent to:

#rmdir

Removes directories at the paths in the given list (a single path or an array of paths); returns list, if it is an array, [list] otherwise.

#rmtree

Alias for #rm_rf.

#safe_unlink

Alias for #rm_f.

#symlink

Alias for #ln_s.

#touch

Updates modification times (mtime) and access times (atime) of the entries given by the paths in list (a single path or an array of paths); returns list if it is an array, [list] otherwise.

#uptodate?

Returns true if the file at path new is newer than all the files at paths in array old_list; false otherwise.

#apply_mask, #fu_each_src_dest, #fu_each_src_dest0, #fu_get_gid, #fu_get_uid,
#fu_list

class Entry_.

#fu_mkdir, #fu_mode, #fu_output_message, #fu_relative_components_from, #fu_same?, #fu_stat_identical_entry?, #mode_to_s, #remove_trailing_slash, #symbolic_modes_to_i, #user_mask

StreamUtils_ - Included