Implements the realpath operation.
Methods
Public Instance methods
A convenience—returns the first (and only) element of the array of items that is returned, instead of returning the array itself.
[ show source ]
# File lib/net/sftp/operations/realpath.rb, line 31 31: def do_name( items ) 32: @callback[ OK, items.first ] 33: end
Perform the operation.
[ show source ]
# File lib/net/sftp/operations/realpath.rb, line 25 25: def perform( path ) 26: @driver.realpath( nil, path ) 27: end