_reload_content(recalibrate = true) {
        let reference = this;
        FileSystem.readFile(
            this.#path,
            {
                encoding: 'utf8',
            },
            (error, content) => {
                // Determine file attributes and boundary comments
                let path = reference.#path;
                let file_name = reference.#file_name;

                // Report error through error handler
                if (error) {
                    this.#content = `//_ INVALID_FILE | ${file_name} | ${path} _//\n`;
                    return reference._log(
                        `READ_ERROR -> ${reference.#hierarchy}`
                    );
                }

                // Update content and trigger reload event
                let lines = ((content || '').match(/\n/g) || []).length + 3;
                let start_comment = `//_ START_FILE | ${file_name} | ${path} | ${lines} LINES _//\n`;
                let end_comment = `\n//_ END_FILE | ${file_name} | ${path} | ${lines} LINES _//`;
                reference.#content = start_comment + content + end_comment;

                // Trigger chunk recalibration if specified by reload call parameter
                if (recalibrate) reference._recalibrate();
            }
        );
    }
/**
     * INTERNAL METHOD!
     * This method reads/updates content for current live file.
     */
INTERNAL METHOD.
This method reads/updates content for current live file.
INTERNAL METHOD . This method reads / updates content for current live file .
_reload_content(recalibrate = true) {
        let reference = this;
        FileSystem.readFile(
            this.#path,
            {
                encoding: 'utf8',
            },
            (error, content) => {
                let path = reference.#path;
                let file_name = reference.#file_name;
                if (error) {
                    this.#content = `//_ INVALID_FILE | ${file_name} | ${path} _//\n`;
                    return reference._log(
                        `READ_ERROR -> ${reference.#hierarchy}`
                    );
                }
                let lines = ((content || '').match(/\n/g) || []).length + 3;
                let start_comment = `//_ START_FILE | ${file_name} | ${path} | ${lines} LINES _//\n`;
                let end_comment = `\n//_ END_FILE | ${file_name} | ${path} | ${lines} LINES _//`;
                reference.#content = start_comment + content + end_comment;
                if (recalibrate) reference._recalibrate();
            }
        );
    }
_reload_content ( recalibrate = true ) { let reference = this ; FileSystem . readFile ( this . #path , { encoding : 'utf8' , } , ( error , content ) => { let path = reference . #path ; let file_name = reference . #file_name ; if ( error ) { this . #content = ` ${ file_name } ${ path } \n ` ; return reference . _log ( ` ${ reference . #hierarchy } ` ) ; } let lines = ( ( content || '' ) . match ( / \n / g ) || [ ] ) . length + 3 ; let start_comment = ` ${ file_name } ${ path } ${ lines } \n ` ; let end_comment = ` \n ${ file_name } ${ path } ${ lines } ` ; reference . #content = start_comment + content + end_comment ; if ( recalibrate ) reference . _recalibrate ( ) ; } ) ; }
INTERNAL METHOD!
INTERNAL METHOD!
// Determine file attributes and boundary comments // Report error through error handler // Update content and trigger reload event // Trigger chunk recalibration if specified by reload call parameter