lib/smb/client/client_helper.rb
# Creates a new directory on the server
# @param [String] path The path to be created
# @param [Boolean] raise raise Error or just return +false+
# @return [Boolean] true on success
Creates a new directory on the server
Creates a new directory on the server
def mkdir(path, raise = true)
      path = '"' + path + '"' if path.include? ' '
      exec 'mkdir ' + path
      true
    rescue Client::RuntimeError => e
      raise e if raise
      false
    end
def mkdir ( path , raise = true ) path = '"' + path + '"' if path . include? ' ' exec 'mkdir ' + path true rescue Client :: RuntimeError => e raise e if raise false end
Creates a new directory on the server
Creates a new directory on the server
true on success
true on success
Boolean
path
<not_specific>
raise
<not_specific>
<not_specific>
raise raise Error or just return +false+
raise raise Error or just return + false +