Class: FSSM::State::Directory

### Home Classes Methods

### In Files

- lib/fssm/state/directory.rb

### Parent

Object

### Methods

- ::new
- #refresh

### Class/Module Index

Quicksearch

- FSSM
- FSSM::Backends
- FSSM::Backends::Inotify
- FSSM::Backends::Polling
- FSSM::Backends::RBFSEvent
- FSSM::Monitor
- FSSM::Path
- FSSM::Pathname
- FSSM::State
- FSSM::State::Directory
- FSSM::State::File
- FSSM::Support
- FSSM::Tree
- FSSM::Tree::Cache
- FSSM::Tree::CacheDebug
- FSSM::Tree::Node
- FSSM::Tree::NodeBase
- FSSM::Tree::NodeEnumerable
- FSSM::Tree::NodeInsertion

No matching classes.

# FSSM::State::Directory

### Attributes

path[R]

### Public Class Methods

new(path, options={}) click to toggle source

    # File lib/fssm/state/directory.rb, line 5
    def initialize(path, options={})
      @path    = path
      @options = options
      @cache   = FSSM::Tree::Cache.new
    end

### Public Instance Methods

refresh(base=nil, skip_callbacks=false) click to toggle source

    # File lib/fssm/state/directory.rb, line 11
    def refresh(base=nil, skip_callbacks=false)
      base_path = FSSM::Pathname.for(base || @path.to_pathname).expand_path
      previous, current = recache(base_path)

      unless skip_callbacks
        deleted(previous, current)
        created(previous, current)
        modified(previous, current)
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.