Methods
Public Class methods
new(path=nil)
# File lib/folio/directory.rb, line 7
    def initialize(path=nil)
      super(path || Dir.pwd)
      raise FileNotFound unless ::File.directory?(@path)
    end
Public Instance methods
+(fname)

Alias for #/

/(fname)

Join paths.

This method is also aliased as +
# File lib/folio/directory.rb, line 75
    def /(fname)
      FileObject[path, fname]
    end
cd(&block)

Alias for chdir

chdir(&block)
This method is also aliased as cd
# File lib/folio/directory.rb, line 51
    def chdir(&block)
      ::Dir.chdir(path, &block)
    end
chmod_r(mode)
# File lib/folio/directory.rb, line 37
    def chmod_r(mode)
      util.chmod_r(mode, path)
    end
chown_r(user, group)

alias_method :chmod_R, :chmod_r

# File lib/folio/directory.rb, line 42
    def chown_r(user, group)
      util.chown_r(user, group, path)
    end
chroot(&block)
# File lib/folio/directory.rb, line 56
    def chroot(&block)
      ::Dir.chroot(path, &block)
    end
cp_r(dest)

Copy recursively.

# File lib/folio/directory.rb, line 18
    def cp_r(dest)
      util.cp_r(path, dest)
    end
delete()

Alias for rmdir

directory?()
# File lib/folio/directory.rb, line 12
    def directory?   ; true  ; end
entries()

Directory entries. This returns a list of file names.

# File lib/folio/directory.rb, line 61
    def entries
      ::Dir.entries(path)
    end
foreach(&block)
# File lib/folio/directory.rb, line 65
    def foreach(&block)
      ::Dir.foreach(path, &block)
    end
paths()

TODO: use enumerator (?)

# File lib/folio/directory.rb, line 70
    def paths
      (::Dir.entries(path) - ['.', '..']).collect{ |f| FileObject[path, f] }
    end
rm_r()
# File lib/folio/directory.rb, line 29
    def rm_r
      util.rm_r(path)
    end
rm_rf(list)
# File lib/folio/directory.rb, line 33
    def rm_rf(list)
      util.rm_rf(path)
    end
rmdir()
This method is also aliased as unlink delete
# File lib/folio/directory.rb, line 22
    def rmdir
      util.rmdir(path)
    end
unlink()

Alias for rmdir