Method: RubySMB::SMB2::Tree#open_pipe

Defined in:
lib/ruby_smb/smb2/tree.rb

#open_pipe(opts) ⇒ Object



59
60
61
62
63
64
65
# File 'lib/ruby_smb/smb2/tree.rb', line 59

def open_pipe(opts)
  # Make sure we don't modify the caller's hash options
  opts = opts.dup
  opts[:filename] = opts[:filename].dup
  opts[:filename] = opts[:filename][1..-1] if opts[:filename].start_with?('\\'.encode(opts[:filename].encoding))
  _open(**opts)
end