ri > Net::SFTP::Protocol::V04::Attributes

Net::SFTP::Protocol::V04::Attributes < Net::SFTP::Protocol::V01::Attributes

πŸ“› NAME

Net::SFTP::Protocol::V04::Attributes β€” A class representing the attributes of a file or directory on the server. It may be used to specify new attributes, or to query existing attributes. This particular class is specific to versions 4 and 5 of the SFTP protocol.

πŸš€ Quick Reference

Use CaseCommandDescription
Create new attributesNet::SFTP::Protocol::V04::Attributes.new({...})Pass a hash with keys like :type, :size, :permissions, etc.
Access attribute valuesattributes.type, attributes.sizeCall method corresponding to attribute name (e.g., .type, .size, .mtime).
Set ACL entriesattributes.acl = [...]Assign an array of ACL entries (structs).
Set owner/group by nameattributes.owner = "user", attributes.group = "group"Use writer methods to set string owner/group.
Query file typeattributes.typeReturns an integer (one of the T_ constants).

πŸ“– DESCRIPTION

To specify new attributes, pass a hash as the argument to the constructor. The following keys are supported:

Likewise, when the server sends an Attributes object, all of the above attributes are exposed as methods (though not all will be set with non‑nil values from the server).

πŸ”’ Constants

πŸ› οΈ Class Methods

πŸ”§ Instance Methods

πŸ“¦ Attributes

Net::SFTP::Protocol::V04::Attributes
Net::SFTP::Protocol::V04::Attributes < Net::SFTP::Protocol::V01::Attributes πŸ“› NAME πŸš€ Quick Reference πŸ“– DESCRIPTION πŸ”’ Constants πŸ› οΈ Class Methods πŸ”§ Instance Methods πŸ“¦ Attributes

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-28 07:20 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^