Skip to main content

move_file

Function move_file 

Source
pub fn move_file(
    report: &ScanReport,
    config: &RaysenseConfig,
    from_path: &str,
    to_path: &str,
) -> Result<ScanReport, SimulateError>
Expand description

Produce a ScanReport representing the codebase as if from_path had been moved to to_path. The file keeps its file_id (and so all imports/calls referencing it stay valid); only path, module, and the graph-derived metrics that depend on path/module change.