Local FS

Local FS Connector #

Register Local FS Connector #

curl -XPOST "http://localhost:9000/connector/" -d '{
  "name" : "Local Filesystem Connector",
  "description" : "Scan and fetch metadata from local files.",
  "category" : "local_storage",
  "icon" : "/assets/icons/connector/local_fs/icon.png",
  "tags" : [
    "storage",
    "filesystem"
  ],
  "url" : "http://coco.rs/connectors/local_fs",
  "assets" : {
    "icons" : {
      "default" : "/assets/icons/connector/local_fs/icon.png"
    }
  }
}'

Use the Local FS Connector #

The Local FS Connector allows you to index data from your local filesystem into your system. Follow these steps to set it up:

Configure file folders & extensions #

You need to configure the folder path, and the connector will scan the metadata of all files under the folder, including subfolders. You can add file extension configuration, and the connector will only scan files with the specified extension you specify.

Example Request #

Here is an example request to configure the Notion Connector:

curl -H 'Content-Type: application/json' -XPOST "http://localhost:9000/datasource/" -d '
{
    "name":"My Local Documents",
    "type":"connector",
    "connector":{
        "id":"local_fs",
         "config":{
            "paths": [ "/path/to/my/documents", "/path/to/another/folder" ],
            "extensions": [ "pdf", "docx", "txt" ]
        }
    }
}''

Supported Config Parameters for Local FS Connector #

Below are the configuration parameters supported by the Local FS Connector:

FieldTypeDescription
paths[]stringAn array of absolute paths to the folders you want to scan.
extensions[]stringOptional. An array of file extensions to include (e.g., pdf, docx). If omitted or empty, all files will be indexed.
Edit Edit this page