Crumbtrail
    Preparing search index...

    Interface IZFileWatch

    Represents and object that can watch a folder or file on the file system.

    interface IZFileWatch {
        add(): Observable<IZFileSystemNode>;
        remove(): Observable<IZFileSystemNode>;
        start(): Promise<void>;
        stop(): Promise<void>;
        update(): Observable<IZFileSystemNode>;
    }

    Implemented by

    Index

    Methods

    • The stream for files and folders being deleted.

      If this watcher points to a folder, then all files under the folder will be sent through this observable, including the folder being watched. If this points to a file, then this will only receive when the file is unlinked.

      Returns Observable<IZFileSystemNode>

      The observable that will publish file and folders that are unlinked and removed respectively. Note that files and folders streamed this way will not have their stats set.