filesystem.listdir ================== Get the contents of a directory. The select option may be used to optimize listdir performance. Metadata-related fields that are not selected will not be retrieved from the filesystem. For example {"select": ["path", "type"]} will avoid querying an xattr list and ZFS attributes for files in a directory. .. raw:: html
Directory path to list contents of.
Must be at least 1 characters long
List of filters for query results. See API documentation for "Query Methods" for more guidance.
No Additional Items[
        [
            "name",
            "=",
            "bob"
        ]
    ]
    [
        [
            "OR",
            [
                [
                    [
                        "name",
                        "=",
                        "bob"
                    ]
                ],
                [
                    [
                        "name",
                        "=",
                        "larry"
                    ]
                ]
            ]
        ]
    ]
    Query options for sorting and pagination.
No Additional PropertiesExtra options are defined on a per-endpoint basis and are described in the documentation for the associated query method.
An array of field names describing the manner in which query results should be ordered. The field names may     also have one of more of the following special prefixes: - (reverse sort direction), nulls_first: (place     any null values at the head of the results list), nulls_last: (place any null values at the tail of the     results list). 
[
        "size",
        "-devname",
        "nulls_first:-expiretime"
    ]
    An array of field names specifying the exact fields to include in the query return. The dot character .     may be used to explicitly select only subkeys of the query result. 
[
        "username",
        "Authentication.status"
    ]
    Return a numeric value representing the number of items that match the specified query-filters. 
Return the JSON object of the first result matching the specified query-filters. The query fails     if there specified query-filters return no results. 
This specifies the beginning offset of the results array. When combined with the limit query-option     it may be used to implement pagination of large results arrays. WARNING: some query methods provide     volatile results and the onus is on the developer to understand whether pagination is appropriate     for a particular query API method. 
This specifies the maximum number of results matching the specified query-filters to return. When     combined wtih the offset query-option it may be used to implement pagination of large results arrays.
WARNING: Some query methods provide volatile results and the onus is on the developer to understand whether pagination is appropriate for a particular query API method.
Force use of SQL for result filtering to reduce response time. May not work for all methods.
Entry's base name.
Must be at least 1 characters long
Entry's full path.
Must be at least 1 characters long
Canonical path of the entry, eliminating any symbolic links.
Must be at least 1 characters long
Type of filesystem entry.
DIRECTORY: Directory/folderFILE: Regular fileSYMLINK: Symbolic linkOTHER: Other file types (device, pipe, socket, etc.)Size of the file in bytes. For directories, this may not represent total content size. Corresonds with stx_size.
Allocated size of file. Calculated by multiplying stx_blocks by 512.
Entry's mode including file type information and file permission bits. This corresponds with stx_mode.
The mount ID of the mount containing the entry. This corresponds to the number in first field of /proc/self/mountinfo and stxmntid.
Specifies whether ACL is present on the entry. If this is the case then file permission     bits as reported in mode may not be representative of the actual permissions. 
User ID of the entry's owner. This corresponds with stx_uid.
Group ID of the entry's owner. This corresponds with stx_gid.
Specifies whether the entry is also the mountpoint of a filesystem.
Specifies whether the entry is located within the ZFS ctldir (for example a snapshot).
Extra file attribute indicators for entry as returned by statx. Expanded from stx_attributes.
No Additional ItemsList of xattr names of extended attributes on file.
No Additional ItemsMust be at least 1 characters long
List of extra ZFS-related file attribute indicators on file. Will be None type if filesystem is not ZFS.
Entry's base name.
Must be at least 1 characters long
Entry's full path.
Must be at least 1 characters long
Canonical path of the entry, eliminating any symbolic links.
Must be at least 1 characters long
Type of filesystem entry.
DIRECTORY: Directory/folderFILE: Regular fileSYMLINK: Symbolic linkOTHER: Other file types (device, pipe, socket, etc.)Size of the file in bytes. For directories, this may not represent total content size. Corresonds with stx_size.
Allocated size of file. Calculated by multiplying stx_blocks by 512.
Entry's mode including file type information and file permission bits. This corresponds with stx_mode.
The mount ID of the mount containing the entry. This corresponds to the number in first field of /proc/self/mountinfo and stxmntid.
Specifies whether ACL is present on the entry. If this is the case then file permission     bits as reported in mode may not be representative of the actual permissions. 
User ID of the entry's owner. This corresponds with stx_uid.
Group ID of the entry's owner. This corresponds with stx_gid.
Specifies whether the entry is also the mountpoint of a filesystem.
Specifies whether the entry is located within the ZFS ctldir (for example a snapshot).
Extra file attribute indicators for entry as returned by statx. Expanded from stx_attributes.
No Additional ItemsList of xattr names of extended attributes on file.
No Additional ItemsMust be at least 1 characters long
List of extra ZFS-related file attribute indicators on file. Will be None type if filesystem is not ZFS.