INNOV-AI

Innovation and Research from Réunion Island, France

Back   Home

Add folder into a remote connection @ CONNECT - Connections @ MentDB Weak

> Start the server
> (or start the server for the first time (embedded mode - H2 Database))
> (or start the server for the first time (remote mode - MySQL 8 Database))
> Open the MentDB Weak Editor

Click on 'CONNECT' tab, open 'Remote file', right click on 'demo_cm_cifs' and select 'Add folder'

MQL INPUT
json load "target_file" "{}";
json iobject "target_file" / "dir" "remoteDirectory" STR;
json iobject "target_file" / "filter" ".*.*" STR;
node iarray "CM[demo_cm_cifs]" /target_files (json doc "target_file") OBJ;
MQL OUTPUT
"Inserted with successful."

Click on the refresh button:

You can see the remote dir

Double click on the remote dir 'remoteDirectory'

MQL INPUT
cifs ls "remoteDirectory" ".*.*" {cm get "demo_cm_cifs";}
MQL OUTPUT
{
  \"data\": [
    \"[\n  \\"filename.txt\\",\n  \\"1\\",\n  \\"2023-08-06 06:03:04\\"\n]\"
  ],
  \"columns\": [
    \"filename\",
    \"isDirectory\",
    \"lastModified\"
  ],
  \"table\": \"FILES\"
}

Right click on the remote dir if you want to delete the remote dir.

start: 2026-01-17   end: 2026-01-31   v_start: 401   v_end: