FileInfo.getAttributeFilePath

Gets the value of a byte string attribute as a file path.

If the attribute does not contain a byte string, NULL will be returned.

This function is meant to be used by language bindings that have specific handling for Unix paths.

class FileInfo
string
getAttributeFilePath
(
string attribute
)

Parameters

attribute string

a file attribute key.

Return Value

Type: string

the contents of the attribute value as a file path, or null otherwise.