markmv - v1.26.2
    Preparing search index...

    Interface OperationResult

    Result of any file operation containing comprehensive status information.

    Provides detailed information about what was changed, created, or deleted during an operation, along with any errors or warnings encountered.

    Handling operation results

    const result: OperationResult = await fileOps.moveFile('old.md', 'new.md');

    if (result.success) {
    console.log(`Operation completed successfully`);
    console.log(`Modified ${result.modifiedFiles.length} files`);
    console.log(`Created ${result.createdFiles.length} files`);
    } else {
    console.error('Operation failed:');
    result.errors.forEach(error => console.error(` ${error}`));
    }
    interface OperationResult {
        success: boolean;
        modifiedFiles: string[];
        createdFiles: string[];
        deletedFiles: string[];
        errors: string[];
        warnings: string[];
        changes: OperationChange[];
    }
    Index

    Properties

    success: boolean

    Whether the operation was successful

    modifiedFiles: string[]

    Files that were modified

    createdFiles: string[]

    Files that were created

    deletedFiles: string[]

    Files that were deleted

    errors: string[]

    Any errors that occurred

    warnings: string[]

    Warnings

    changes: OperationChange[]

    Detailed changes made