copy_db_fields_to


Description:

public virtual void copy_db_fields_to (FileBase target)

Copy database-preserved fields from this object to another.

Used when updating from filesystem: preserves DB fields like id, is_active, cursor positions, etc. that shouldn't be overwritten by filesystem scan.

Copied Fields

Copies all database-preserved fields (excluding filesystem-derived fields): id, is_active, last_viewed, last_modified, language, cursor_line, cursor_offset, scroll_position, is_project, is_ignored, is_text, is_repo, last_vector_scan.

Note:

base_type is not copied as it's determined by object type and should match.

Parameters:

target

The target object to copy fields to (typically the new filesystem item)