convert_fake_file_to_real


Description:

public async void convert_fake_file_to_real (File file, string file_path) throws Error

Converts a fake file (id = -1) to a real File object if it's within the active project.

This method: - Checks if the file is within the active project - Finds or creates parent folder objects in the project tree - Queries file info from disk - Converts the fake file to a real File object - Saves the file to the database - Updates the ProjectFiles list - Emits the new_file_added signal

Parameters:

file

The fake file to convert (must have id = -1)

file_path

The normalized file path