> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cuse.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Path Info

> Gets detailed information about a file or directory.



## OpenAPI

````yaml api-reference/openapi.json get /api/filesystem/info/{path}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: http://localhost:4242/{computer_name}
    description: Local development server
    variables:
      computer_name:
        default: your-computer-name
        description: Computer name
security: []
paths:
  /api/filesystem/info/{path}:
    get:
      tags:
        - filesystem
      summary: Get Path Info
      description: Gets detailed information about a file or directory.
      operationId: getPathInfo
      parameters:
        - name: path
          in: path
          required: true
          schema:
            type: string
            title: Path
      responses:
        '200':
          description: Successfully retrieved path information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileInfo'
              example:
                name: document.txt
                path: /home/user/documents/document.txt
                type: file
                size: 1024
                modified_time: '2024-03-10T12:34:56'
                is_hidden: false
                extension: txt
        '403':
          description: Permission denied
        '404':
          description: Path not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
components:
  schemas:
    FileInfo:
      properties:
        name:
          type: string
          title: Name
          description: File or directory name
          example: document.txt
        path:
          type: string
          title: Path
          description: Full path to the file or directory
          example: /home/user/documents/document.txt
        type:
          type: string
          title: Type
          description: 'Type of entry: ''file'' or ''directory'''
          example: file
        size:
          type: integer
          title: Size
          description: Size in bytes
          example: 1024
        modified_time:
          type: string
          format: date-time
          title: Modified Time
          description: Last modification time
          example: '2024-03-10T12:34:56'
        is_hidden:
          type: boolean
          title: Is Hidden
          description: Whether the file/directory is hidden
          example: false
        extension:
          anyOf:
            - type: string
            - type: 'null'
          title: Extension
          description: File extension if applicable
          example: txt
      type: object
      required:
        - name
        - path
        - type
        - size
        - modified_time
        - is_hidden
      title: FileInfo
      example:
        extension: txt
        is_hidden: false
        modified_time: '2024-03-10T12:34:56'
        name: document.txt
        path: /home/user/documents/document.txt
        size: 1024
        type: file
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````