invantive documentation
Invantive Support ForumsLog In / Sign Up

FilesByPath: Nextcloud Nextcloud Files by Path

read only REST

  • Catalog: Nextcloud
  • Schema: Nextcloud
  • Primary Keys: path
  • Label: Nextcloud Files by Path

Can only retrieve data.

Summary

One folder listed one level deep, by its path, one row per entry including the folder itself. A whole tree is never walked unbounded.

API Source

  • Endpoint: /remote.php/dav/files/ncadmin/{path}

Performance Characteristics

Characteristic Value
Average access latency (ms) 305
Full scan rows per minute 3,450

The result can be cached on the client.

Parameters

Name Data Type Required Default Documentation
path varchar2 Folder to list, relative to the connected account's own root. Pass '/' to list the root - an empty argument is dropped before it reaches the URL and answers the literal, unsubstituted route instead of the root.

Table Columns

The columns of the table FilesByPath are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

Name Data Type Label Required Marks Documentation
content_type varchar2 itgen_ncl_content_type filters on the platform, writable, d:getcontenttype MIME type; empty for a folder.
etag varchar2 itgen_ncl_etag filters on the platform, writable, d:getetag Entity tag: the version Nextcloud gives this file, changing whenever its content changes.
file_id int64 itgen_ncl_file_id filters on the platform, writable, oc:fileid Identifier stable across a rename or move.
has_preview char itgen_ncl_has_preview filters on the platform, writable, nc:has-preview Whether the server can generate a thumbnail for the entry.
is_folder char itgen_ncl_is_folder filters on the platform, writable, d:resourcetype/d:collection Whether the entry is a folder rather than a file.
last_modified datetime itgen_ncl_last_modified filters on the platform, writable, d:getlastmodified Moment last modified.
owner_id varchar2 itgen_ncl_owner_id filters on the platform, writable, oc:owner-id Login name of the entry's owner.
path varchar2 itgen_ncl_path filters on the platform, writable, d:href Path relative to the connected account's own root.
permissions varchar2 itgen_ncl_permissions filters on the platform, writable, oc:permissions Permission letters the connected account has on the entry.
size_bytes int64 itgen_ncl_size_bytes filters on the platform, writable, d:getcontentlength Size in bytes; empty for a folder.