File addresses and Preview

When DataMind Oda points at a file, it names the file with a file address: the file's location together with the chat that may read it. File links and the side panel's Preview work through these addresses. This page covers what an address carries, how its path is written, and why some addresses cannot be opened.

What an address carries

An address has two parts:

Oda always writes a chat into an address when it builds one, so every link it makes belongs to a chat. The workspace folder a chat works in is covered in Workspaces, files and permissions.

The two kinds of address

Oda does not fill in a chat to make an absolute address work, not even the chat you have open. Each chat keeps its own previews of the files it names, so the same file reached from two chats has a tab in each (Preview files in Oda).

How the path is written

How an address is read

Questions, answered

Which addresses can the Preview open?

An address for a chat, read through the chat it carries. An absolute address cannot be opened: nothing authorises the read, so it does not become a preview, and Oda does not borrow the chat you have open to make it work. Preview files in Oda covers the preview itself.

Whose access does an address use?

The chat it carries. A link names the chat it came from, and Oda reads the file through that chat; Oda does not fall back to the chat you have open, so an address with no chat cannot be opened.

Why can the same file have more than one address?

Because an address carries its chat. Each chat names a file it points at in its own right, so the same file reached from two chats has two addresses, and each chat keeps its own preview of it.

What stays as written in an address?

A full path keeps its leading slash, a drive letter stays as written, and a network share keeps its leading double slash. Separators are written as / throughout the address.

How is a file outside the chat's folder named?

It is still named in an address for that chat; its path inside the address is the full path, kept as written, not a path relative to the chat's folder. Only a file that really sits inside the folder is named relative to it.

My file's name contains # or ?. Will the link still point at it?

Yes. Those characters are written in an encoded form, so the link still points at the file. The first ? or # in an address is only where the file's name ends; anything after it is extra that the address carries.

Does .. move up a folder when an address is read?

No. Oda reads an address as text and never follows dot parts: a .. stays as written and never moves up a folder, and an encoded .. is just text once decoded.

What happens to a damaged address?

If an address is missing its chat or its path, or a part of it does not decode, Oda does not treat it as an address at all. Nothing opens from it, and Oda does not guess the file you meant.

Does reading an address check that the file exists?

No. Reading uses the address's text alone and never looks at the disk, so an address reads the same whether or not the file is still there. If the file has gone, opening it is what fails; Links and files in chat covers the message the chat shows.