Get File Info

nextcloud.get_file_info
ActionFiles & storageconnection required

Calls the Nextcloud API with the connection's credentials.

Read the WebDAV properties of one file or folder: its size, MIME type, ETag, Nextcloud file id and permission letters.

Connection

Required
Yes — the node will not save without one
Auth type
Username & password
Providers
Nextcloud
Secret shape
{"username": "…", "password": "<app password>"}
Config it needs
base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
path
Path inside the account's Nextcloud files, e.g. /Documents/report.pdf.
stringYes——/Documents/report.pdf

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "path": "/Documents/report.pdf"
}

Output

One shape.

result

FieldTypeExample
name
The file or folder name.
stringreport.pdf
path
Path relative to the account's files root.
string/Documents/report.pdf
href
The WebDAV href Nextcloud returned for the entry.
string—
is_folder
True when the entry is a folder (a WebDAV collection).
boolean—
size
Size in bytes; for a folder, the total Nextcloud reports.
number—
content_type
The MIME type; empty for a folder.
stringapplication/pdf
last_modified
When the entry last changed, as Nextcloud wrote it.
string—
etag
The entry's ETag, with its quotes stripped.
string—
file_id
The numeric Nextcloud file id (oc:fileid).
string12345
unique_id
The globally unique file id (oc:id).
string—
permissions
Nextcloud's permission letters for this account, e.g. 'RGDNVCK'.
string—
{
  "content_type": "application/pdf",
  "etag": "",
  "file_id": "12345",
  "href": "",
  "is_folder": false,
  "last_modified": "",
  "name": "report.pdf",
  "path": "/Documents/report.pdf",
  "permissions": "",
  "size": 0,
  "unique_id": ""
}

See Get File Info run in a workflow.

In a technical demo we add the Nextcloud connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.