---
title: endpointPathEntryStats query | Wartiva GraphQL API
description: Retrieves the stat record (mode, ownership, sizes, timestamps, and OS-specific attributes) of one file path discovered by an EndpointPath.
url: https://wartiva.com/api-docs/queries/endpoint-path-entry-stats.html
updated: 2026-10-07
---

File path sensors · GraphQL query

# `endpointPathEntryStats` query

Retrieves the stat record (mode, ownership, sizes, timestamps, and OS-specific attributes) of one file path discovered by an [EndpointPath](https://wartiva.com/api-docs/types/endpoint-path.html) — list discovered paths with its `entries` field. Returns null when the sensor has never reported that path. See [endpointPathEntryContents](https://wartiva.com/api-docs/queries/endpoint-path-entry-contents.html) for the file's collected bytes.

## Response

Returns an [`EndpointPathEntryStatsPayload`](https://wartiva.com/api-docs/types/endpoint-path-entry-stats-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The EndpointPath identifier. |
| `path` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The absolute file path exactly as reported by the endpoint. |
| `mockOptions` - [`MockDataInput`](https://wartiva.com/api-docs/types/mock-data-input.html) | Options for mock data generation. Options supported: key: "PLATFORM", value: OsPlatform example: "mockOptions": { "options": [ { "key": "PLATFORM", "value": "WINDOWS" } ] } |

## Example

### Query

```graphql
query endpointPathEntryStats(
  $id: ID!,
  $path: String!,
  $mockOptions: MockDataInput
) {
  endpointPathEntryStats(
    id: $id,
    path: $path,
    mockOptions: $mockOptions
  ) {
    node {
      path
      mode {
        ...PosixFileModeFragment
      }
      isDirectory
      isSymlink
      symlinkTarget
      isHardLink
      hardLinkCount
      inode
      deviceId
      ownerUid
      ownerGid
      owner {
        ...EndpointUserFragment
      }
      group {
        ...EndpointGroupFragment
      }
      size
      modifiedAt
      checksum
      hasContents
      deleted
      deletedAt
      renamedTo
      executedAt
      contentTruncated
      collectedAt
      osSpecific {
        ... on EndpointPathWindows {
          ...EndpointPathWindowsFragment
        }
        ... on EndpointPathMacOS {
          ...EndpointPathMacOSFragment
        }
        ... on EndpointPathLinux {
          ...EndpointPathLinuxFragment
        }
      }
      creationTime
      lastWriteTime
      lastAccessTime
      lastChangeTime
      lastStatusChangeTime
    }
  }
}

```

### Variables

```json
{
  "id": "4",
  "path": "abc123",
  "mockOptions": MockDataInput
}

```

### Response

```json
{
  "data": {
    "endpointPathEntryStats": {
      "node": EndpointPathEntryStats
    }
  }
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
