APIdock / Ruby
/
Browse About
method

mkdir

v2_4_6 - Show latest stable - Class: Object
mkdir()
public

Create the DIR, if they do not already exist.

ruby -run -e mkdir -- [OPTION] DIR

-p          no error if existing, make parent directories as needed
-v          verbose
# File lib/un.rb, line 160
def mkdir
  setup("p") do |argv, options|
    cmd = "mkdir"
    cmd += "_p" if options.delete :p
    FileUtils.send cmd, argv, options
  end
end

Related methods

  • Instance methods
  • !~
  • <=>
  • ===
  • =~
  • CSV
  • DelegateClass
  • Digest
  • __getobj__
  • __setobj__
  • chmod
  • class
  • clone
  • cp
  • dclone
  • default_src_encoding
  • define_singleton_method
  • display
  • dup
  • enum_for
  • eql?
  • extend
  • freeze
  • frozen?
  • help
  • httpd
  • initialize_clone
  • initialize_copy
  • initialize_dup
  • inspect
  • install
  • instance_of?
  • instance_variable_defined?
  • instance_variable_get
  • instance_variable_set
  • instance_variables
  • is_a?
  • itself
  • kind_of?
  • ln
  • method
  • methods
  • mkdir
  • mkmf
  • mv
  • nil?
  • object_id
  • pretty_print
  • pretty_print_cycle
  • private_methods
  • protected_methods
  • psych_to_yaml
  • public_method
  • public_methods
  • public_send
  • remove_instance_variable
  • respond_to?
  • respond_to_missing?
  • rm
  • rmdir
  • send
  • setup
  • singleton_class
  • singleton_method
  • singleton_methods
  • sysread
  • taint
  • tainted?
  • tap
  • timeout
  • to_enum
  • to_s
  • to_yaml
  • to_yaml_properties
  • touch
  • trust
  • unknown
  • untaint
  • untrust
  • untrusted?
  • wait_writable
  • xmp
  • Class methods
  • yaml_tag
  • Protected methods
  • protectedhash
APIdock API Documentation Browser

© 2026 APIdock