Class: RStyx::Message::Twalk

Inherits:
StyxMessage show all
Defined in:
lib/rstyx/messages.rb

Overview

Class representing a Twalk message sent by a Styx client. See Inferno’s walk(5) for more details.

Fields

fid

The existing fid to start the walk from

newfid

The new fid to assign to the file walked to

wnames

A list of path elements to walk to

Constant Summary

Constants inherited from StyxMessage

StyxMessage::MESSAGE_IDS

Instance Attribute Summary

Attributes inherited from StyxMessage

#fieldvals

Instance Method Summary collapse

Methods inherited from StyxMessage

add_field, fields, from_bytes, #ident, #initialize, #tag, #tag=, #to_bytes, #to_s

Constructor Details

This class inherits a constructor from RStyx::Message::StyxMessage

Instance Method Details

#pathObject

Return the path name representation of the Twalk message’s _wname_s.



683
684
685
# File 'lib/rstyx/messages.rb', line 683

def path
  return(@fieldvals[:wnames].join(File::SEPARATOR))
end

#path=(str) ⇒ Object

Set the wnames field of the Twalk message by specifying a path name str instead of an array of path elements.



675
676
677
# File 'lib/rstyx/messages.rb', line 675

def path=(str)
  @fieldvals[:wnames] = str.split(File::SEPARATOR)
end