destroy() {
        let reference = this;
        this._log(`DESTROYED -> ${this.#hierarchy}`);
        this.#watcher_pool.unwatch(this.#path, this.#watcher_id);

        // Clean up pointers & nested files
        this.#nested_pointers = [];
        Object.keys(this.#file_store).forEach((path) => {
            reference.#file_store[path].destroy();
            delete reference.#file_store[path];
        });
    }
/**
     * This method can be used to destroy current live file and its watcher.
     */
This method can be used to destroy current live file and its watcher.
This method can be used to destroy current live file and its watcher .
destroy() {
        let reference = this;
        this._log(`DESTROYED -> ${this.#hierarchy}`);
        this.#watcher_pool.unwatch(this.#path, this.#watcher_id);
        this.#nested_pointers = [];
        Object.keys(this.#file_store).forEach((path) => {
            reference.#file_store[path].destroy();
            delete reference.#file_store[path];
        });
    }
destroy ( ) { let reference = this ; this . _log ( ` ${ this . #hierarchy } ` ) ; this . #watcher_pool . unwatch ( this . #path , this . #watcher_id ) ; this . #nested_pointers = [ ] ; Object . keys ( this . #file_store ) . forEach ( ( path ) => { reference . #file_store [ path ] . destroy ( ) ; delete reference . #file_store [ path ] ; } ) ; }
This method can be used to destroy current live file and its watcher.
This method can be used to destroy current live file and its watcher .
// Clean up pointers & nested files