Class VimMate::ListedTree
In: lib/vimmatelib/files.rb
Parent: Object

A tree of files and directory. Can signal added and removed files.

Methods

Included Modules

Enumerable

Public Class methods

Public Instance methods

Add a path: a file or a directory. If it‘s a directory, all files within this directory are also added

Add a block that will be called when a file is added or removed. The block take 2 arguments: method and file:

 method: :add, :remove or :refresh
 file: the ListedFile or ListedDirectory that is affected

Add a block that will be called when too many files are added. The block takes 1 argument, the number of files that where added.

Yield each files and directory at the root of the tree

Indicates that the initial file adding is going on. Used to warn if there are too many files

Refresh the files from the tree. Inexistent files are removed and new files are added

[Validate]