Function getSync

  • Synchronously gets the value of an extended attribute.

    Parameters

    • this: V_Context
    • path: string

      Path to the file

    • name:
          | `user.${string}`
          | `trusted.${string}`
          | `system.${string}`
          | `security.${string}`

      Name of the attribute to get

    • Optionalopt: Options & (BufferEncodingOption | { encoding?: null | undefined; })

      Options for the operation

    Returns Uint8Array

    A buffer containing the attribute value when encoding is 'buffer' or undefined, or a string when a string encoding is specified

  • Synchronously gets the value of an extended attribute.

    Parameters

    • this: V_Context
    • path: string

      Path to the file

    • name:
          | `user.${string}`
          | `trusted.${string}`
          | `system.${string}`
          | `security.${string}`

      Name of the attribute to get

    • opt: Options & ObjectEncodingOptions

      Options for the operation

    Returns string

    A buffer containing the attribute value when encoding is 'buffer' or undefined, or a string when a string encoding is specified