> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.ftp.NewFile

- Component: `appmixer.utils.ftp.NewFile`
- Kind: Trigger
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.utils.ftp 1.4.2](https://connectors.appmixer.com/connector/appmixer.utils.ftp/1.4.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.ftp/1.4.2/component/appmixer.utils.ftp.NewFile>

Watch for new files and folders.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Path (`path`) | text | The path to watch for new files and directories. E.g. "/tmp" |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Name (`name`) | string | - |
| Size (`size`) | integer | - |
| Type (`type`) | integer | - |
| Modified At (`modifiedAt`) | string | - |
| Permissions (`permissions`) | object | - |
| Hard Link Count (`hardLinkCount`) | integer | - |
| Link (`link`) | string | - |
| Group (`group`) | string | - |
| User (`user`) | string | - |
| Unique ID (`uniqueID`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.ftp.NewFile",
  "author": "David Durman <david@client.io>",
  "description": "Watch for new files and folders.",
  "auth": {
    "service": "appmixer:utils:ftp"
  },
  "tick": true,
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        }
      }
    },
    "inspector": {
      "inputs": {
        "path": {
          "type": "text",
          "label": "Path",
          "index": 1,
          "tooltip": "The path to watch for new files and directories. E.g. \"/tmp\""
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "invoice-1001.pdf"
          }
        },
        {
          "label": "Size",
          "value": "size",
          "schema": {
            "type": "integer",
            "example": 20480
          }
        },
        {
          "label": "Type",
          "value": "type",
          "schema": {
            "type": "integer",
            "example": 1
          }
        },
        {
          "label": "Modified At",
          "value": "modifiedAt",
          "schema": {
            "type": "string",
            "example": "2024-03-15T10:30:00.000Z"
          }
        },
        {
          "label": "Permissions",
          "value": "permissions",
          "schema": {
            "type": "object",
            "example": {
              "user": 6,
              "group": 4,
              "world": 4
            }
          }
        },
        {
          "label": "Hard Link Count",
          "value": "hardLinkCount",
          "schema": {
            "type": "integer",
            "example": 1
          }
        },
        {
          "label": "Link",
          "value": "link",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Group",
          "value": "group",
          "schema": {
            "type": "string",
            "example": "ftp"
          }
        },
        {
          "label": "User",
          "value": "user",
          "schema": {
            "type": "string",
            "example": "ftp"
          }
        },
        {
          "label": "Unique ID",
          "value": "uniqueID",
          "schema": {
            "type": "string",
            "example": "802U5E0A3F"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
