# Seafile

> Keep your Seafile files in order: upload, download, find, move, copy, rename and delete files and folders, and make share links to send. Start a workflow when a file is added to a folder or changed.

App · 13 actions. Web page: https://docs.lodol.com/docs/integrations/seafile

## Actions

### Copy file or folder

Copy a file or folder into another folder, in the same library or another one.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Path (`path`, text, required): The file or folder's path in the library, such as /Invoices/invoice.pdf.
- To folder (`destination_folder`, text, required): The folder to copy it into, such as /Archive/2026: pick one, or type its path in To library when you choose one. It's made if it isn't there yet.
- To library (`destination_library`, text): Another library to copy it to. Leave blank to keep it in the same library.

**Outputs**

- `file_id` (text): Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
- `library` (text): The name of the library it's in
- `library_id` (text): The ID of the library it's in
- `link` (text): Where to open it in Seafile, for people who can see the library
- `modified_at` (text): When it last changed (ISO 8601, UTC)
- `modified_by` (text): The name of who last changed it, when Seafile says
- `modified_by_email` (text): Their email address, when Seafile says
- `name` (text): Its name, such as invoice-1001.pdf
- `path` (text): Its path in the library, such as /Invoices/invoice-1001.pdf
- `size` (number): Its size in bytes; 0 for a folder
- `type` (text): file or folder

**Example output**

```json
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001.pdf",
  "path": "/Archive/2026/invoice-1001.pdf",
  "size": 48213,
  "type": "file"
}
```

### Create folder

Make a folder, and any folders above it that aren't there yet. Nothing changes if it's already there.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Path (`path`, text, required): The folder's path, such as /Clients/Acme/2026.

**Outputs**

- `created` (true/false): False when the folder was already there
- `file_id` (text): Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
- `library` (text): The name of the library it's in
- `library_id` (text): The ID of the library it's in
- `link` (text): Where to open it in Seafile, for people who can see the library
- `modified_at` (text): When it last changed (ISO 8601, UTC)
- `modified_by` (text): The name of who last changed it, when Seafile says
- `modified_by_email` (text): Their email address, when Seafile says
- `name` (text): Its name, such as invoice-1001.pdf
- `path` (text): Its path in the library, such as /Invoices/invoice-1001.pdf
- `size` (number): Its size in bytes; 0 for a folder
- `type` (text): file or folder

**Example output**

```json
{
  "created": true,
  "file_id": "",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/library/d61e8ac4-fed7-413e-993b-5318f8de63d8/Team%20Files/Invoices/2026",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "",
  "modified_by_email": "",
  "name": "2026",
  "path": "/Invoices/2026",
  "size": 0,
  "type": "folder"
}
```

### Create share link

Make a link anyone can open a file or folder with, to send to someone, with a password and end date if you like.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Path (`path`, text, required): The file or folder's path in the library, such as /Invoices/invoice.pdf.
- Password (`password`, text): A password the link asks for, of 8 characters or more unless your server says otherwise. Leave blank for none.
- Expires (`expires_on`, date): The last day the link works. Leave blank to keep it working.
- Allow download (`allow_download`, true/false): Let people with the link download it, not only view it. Default: `true`.

**Outputs**

- `allow_download` (true/false): Whether people with the link can download, not only view
- `created_at` (text): When it was made (ISO 8601, UTC)
- `expires_at` (text): When it stops working (ISO 8601, UTC); empty if never
- `has_password` (true/false): Whether the link asks for a password
- `library` (text): The library's name
- `library_id` (text): The library's ID
- `link` (text): The link to send
- `name` (text): The shared file or folder's name
- `path` (text): What it shares
- `token` (text): The link's code, the last part of the link
- `type` (text): file or folder
- `view_count` (number): How many times it has been opened

**Example output**

```json
{
  "allow_download": true,
  "created_at": "2026-11-05T09:31:00Z",
  "expires_at": "2026-12-31T23:59:59Z",
  "has_password": true,
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/f/55d6b9faffa5463caadb/",
  "name": "invoice-1001.pdf",
  "path": "/Invoices/invoice-1001.pdf",
  "token": "55d6b9faffa5463caadb",
  "type": "file",
  "view_count": 0
}
```

### Delete file or folder

Delete a file or folder. It goes to the library's trash, where it can be restored for as long as the library keeps its history.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Path (`path`, text, required): The file or folder's path in the library, such as /Invoices/invoice.pdf.

**Outputs**

- `deleted` (true/false): True once deleted
- `library` (text): The library's name
- `library_id` (text): The library's ID
- `path` (text): What was deleted
- `type` (text): file or folder

**Example output**

```json
{
  "deleted": true,
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "path": "/Inbox/old-scan.pdf",
  "type": "file"
}
```

### Delete share link

Stop a share link working, so nobody can open it any more.

**Inputs**

- Share link (`link`, text, required): The link, such as https://cloud.example.com/f/55d6b9faffa5463caadb/, or its code.

**Outputs**

- `deleted` (true/false): True once the link stops working
- `token` (text): The link's code

**Example output**

```json
{
  "deleted": true,
  "token": "55d6b9faffa5463caadb"
}
```

### Download file

Download a file for later steps, such as attaching it to an email. A text file of 1 MB or less is also given as text.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Path (`path`, text, required): The file's path, such as /Invoices/invoice-1001.pdf.

**Outputs**

- `content_type` (text): Its type, such as application/pdf, from its name
- `document_ref` (text): The downloaded file, for a later step's file field
- `file_name` (text): The file's name
- `library` (text): The library's name
- `library_id` (text): The library's ID
- `path` (text): The file's path
- `size` (number): Its size in bytes
- `text` (text): What it says, for a text file of 1 MB or less; otherwise empty

**Example output**

```json
{
  "content_type": "text/csv",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "file_name": "q1-summary.csv",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "path": "/Reports/2026/q1-summary.csv",
  "size": 38,
  "text": "month,revenue\nJan,100\nFeb,120\nMar,140\n"
}
```

### Get file details

Look up a file or folder: its size, when it last changed and who changed it, and its link.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Path (`path`, text, required): The file or folder's path in the library, such as /Invoices/invoice.pdf.

**Outputs**

- `file_id` (text): Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
- `library` (text): The name of the library it's in
- `library_id` (text): The ID of the library it's in
- `link` (text): Where to open it in Seafile, for people who can see the library
- `modified_at` (text): When it last changed (ISO 8601, UTC)
- `modified_by` (text): The name of who last changed it, when Seafile says
- `modified_by_email` (text): Their email address, when Seafile says
- `name` (text): Its name, such as invoice-1001.pdf
- `path` (text): Its path in the library, such as /Invoices/invoice-1001.pdf
- `size` (number): Its size in bytes; 0 for a folder
- `type` (text): file or folder

**Example output**

```json
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001.pdf",
  "path": "/Invoices/invoice-1001.pdf",
  "size": 48213,
  "type": "file"
}
```

### List folder

List the files and folders in a folder, folders first, with their sizes and when they changed.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Folder (`folder`, text): The folder, such as /Invoices. Leave blank for the library's top folder.
- Include subfolders (`include_subfolders`, true/false): Also list everything in the folders inside it, all the way down. Default: `false`.
- How many (`limit`, number): The most to list. Defaults to 100. From 1 to 1000.

**Outputs**

- `count` (number): How many are listed
- `folder` (text): The folder listed
- `items` (list): The files and folders, folders first
- `library` (text): The library's name
- `library_id` (text): The library's ID
- `more` (true/false): True when the folder holds more than were listed

**Example output**

```json
{
  "count": 2,
  "folder": "/Invoices",
  "items": [
    {
      "file_id": "",
      "library": "Team Files",
      "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
      "link": "https://cloud.seafile.com/library/d61e8ac4-fed7-413e-993b-5318f8de63d8/Team%20Files/Invoices/2026",
      "modified_at": "2026-11-05T09:30:00Z",
      "modified_by": "",
      "modified_by_email": "",
      "name": "2026",
      "path": "/Invoices/2026",
      "size": 0,
      "type": "folder"
    },
    {
      "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
      "library": "Team Files",
      "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
      "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
      "modified_at": "2026-11-05T09:30:00Z",
      "modified_by": "Alex Rivera",
      "modified_by_email": "alex@example.com",
      "name": "invoice-1001.pdf",
      "path": "/Invoices/invoice-1001.pdf",
      "size": 48213,
      "type": "file"
    }
  ],
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "more": false
}
```

### List libraries

List the libraries the account can open: its own, ones shared with it, and its groups'.

**Inputs**

- How many (`limit`, number): The most to list. Defaults to 100. From 1 to 1000.

**Outputs**

- `count` (number): How many
- `libraries` (list): The libraries, by name

**Example output**

```json
{
  "count": 1,
  "libraries": [
    {
      "access": "mine",
      "can_edit": true,
      "encrypted": false,
      "id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
      "modified_at": "2026-11-05T09:30:00Z",
      "name": "Team Files",
      "owner": "Alex Rivera",
      "owner_email": "alex@example.com",
      "size": 1932735
    }
  ]
}
```

### Move file or folder

Move a file or folder into another folder, in the same library or another one.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Path (`path`, text, required): The file or folder's path in the library, such as /Invoices/invoice.pdf.
- To folder (`destination_folder`, text, required): The folder to move it into, such as /Archive/2026: pick one, or type its path in To library when you choose one. It's made if it isn't there yet.
- To library (`destination_library`, text): Another library to move it to. Leave blank to keep it in the same library.

**Outputs**

- `file_id` (text): Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
- `library` (text): The name of the library it's in
- `library_id` (text): The ID of the library it's in
- `link` (text): Where to open it in Seafile, for people who can see the library
- `modified_at` (text): When it last changed (ISO 8601, UTC)
- `modified_by` (text): The name of who last changed it, when Seafile says
- `modified_by_email` (text): Their email address, when Seafile says
- `name` (text): Its name, such as invoice-1001.pdf
- `path` (text): Its path in the library, such as /Invoices/invoice-1001.pdf
- `size` (number): Its size in bytes; 0 for a folder
- `type` (text): file or folder

**Example output**

```json
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001.pdf",
  "path": "/Archive/2026/invoice-1001.pdf",
  "size": 48213,
  "type": "file"
}
```

### Rename file or folder

Give a file or folder a new name, in the same folder.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Path (`path`, text, required): The file or folder's path in the library, such as /Invoices/invoice.pdf.
- New name (`new_name`, text, required): The new name, such as invoice-1001-paid.pdf. Keep a file's ending, such as .pdf.

**Outputs**

- `file_id` (text): Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
- `library` (text): The name of the library it's in
- `library_id` (text): The ID of the library it's in
- `link` (text): Where to open it in Seafile, for people who can see the library
- `modified_at` (text): When it last changed (ISO 8601, UTC)
- `modified_by` (text): The name of who last changed it, when Seafile says
- `modified_by_email` (text): Their email address, when Seafile says
- `name` (text): Its name, such as invoice-1001.pdf
- `path` (text): Its path in the library, such as /Invoices/invoice-1001.pdf
- `size` (number): Its size in bytes; 0 for a folder
- `type` (text): file or folder

**Example output**

```json
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001-paid.pdf",
  "path": "/Invoices/invoice-1001-paid.pdf",
  "size": 48213,
  "type": "file"
}
```

### Search files

Find files and folders whose name contains some words, most recently changed first.

**Inputs**

- Name contains (`query`, text, required): Part of the name, such as invoice.
- Library (`library`, text): Only look in this library. Leave blank to look in every library (the first 50).
- How many (`limit`, number): The most to list. Defaults to 100. From 1 to 1000.

**Outputs**

- `count` (number): How many
- `items` (list): The files and folders found, most recently changed first
- `query` (text): What was searched for

**Example output**

```json
{
  "count": 1,
  "items": [
    {
      "file_id": "",
      "library": "Team Files",
      "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
      "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
      "modified_at": "2026-11-05T09:30:00Z",
      "modified_by": "",
      "modified_by_email": "",
      "name": "invoice-1001.pdf",
      "path": "/Invoices/invoice-1001.pdf",
      "size": 48213,
      "type": "file"
    }
  ],
  "query": "invoice"
}
```

### Upload file

Put a file in a folder, such as an email attachment or a PDF made in an earlier step, or save text as a file.

**Inputs**

- Library (`library`, text, required): The library: pick it, or type its exact name.
- Folder (`folder`, text): The folder to put it in, such as /Invoices/2026. It's made if it isn't there yet. Leave blank for the library's top folder.
- File (`file`, text): The file: upload one, pick a file from an earlier step, or paste a link to one. Use this or Text.
- Text (`text`, text): Words to save as the file, such as a CSV or notes. Use this or File, and give a file name.
- File name (`file_name`, text): What to call it, such as invoice-1001.pdf. Leave blank to keep the file's own name.
- Replace (`replace`, true/false): Write over a file with the same name. Off: Seafile keeps both, adding (1) to the new one's name. Default: `false`.

**Outputs**

- `file_id` (text): Seafile's ID for the file's current content: it changes whenever the file does. Empty for a folder
- `library` (text): The name of the library it's in
- `library_id` (text): The ID of the library it's in
- `link` (text): Where to open it in Seafile, for people who can see the library
- `modified_at` (text): When it last changed (ISO 8601, UTC)
- `modified_by` (text): The name of who last changed it, when Seafile says
- `modified_by_email` (text): Their email address, when Seafile says
- `name` (text): Its name, such as invoice-1001.pdf
- `path` (text): Its path in the library, such as /Invoices/invoice-1001.pdf
- `size` (number): Its size in bytes; 0 for a folder
- `type` (text): file or folder

**Example output**

```json
{
  "file_id": "894e505b70487aa6dbfa850c4f180e70d3091f38",
  "library": "Team Files",
  "library_id": "d61e8ac4-fed7-413e-993b-5318f8de63d8",
  "link": "https://cloud.seafile.com/lib/d61e8ac4-fed7-413e-993b-5318f8de63d8/file/Invoices/invoice-1001.pdf",
  "modified_at": "2026-11-05T09:30:00Z",
  "modified_by": "Alex Rivera",
  "modified_by_email": "alex@example.com",
  "name": "invoice-1001.pdf",
  "path": "/Invoices/invoice-1001.pdf",
  "size": 48213,
  "type": "file"
}
```
