File


Object Hierarchy:

Object hierarchy for File

Description:

public class File : FileBase, Copyable

Represents a file in the project.

Files can be in multiple projects (due to softlinks/symlinks). All alias references are tracked in ProjectManager's alias_map.

Constructors: File(manager) for RPC-hydrated rows; File.new_fake for paths not yet in the DB (

id == -1
) until to_real.

Client File — buffers and Gtk helpers stay local; disk/DB via RPC.

Content Access

All content access methods delegate to file.buffer. Ensure buffer is created before use:

if (file.buffer == null) {
file.manager.buffer_provider.create_buffer(file);
}
if (!(yield file.read())) {
// not found on daemon
}
var contents = file.buffer.get_text();

All known sub-classes:

Namespace: OLLMfiles
Package: ollmchat

Content:

Properties:

Static methods:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class GLib.Object
All known members inherited from interface OLLMfiles.Copyable
All known members inherited from interface OLLMrpc.Bin.Serializable