Method: LinuxStat::FTW.count_directories

Defined in:
lib/linux_stat/ftw.rb

.count_directories(path = __dir__) ⇒ Object

Count only directories in a given path and under its subdirectories. It accepts one argument: * path: Path is the expanded path that you want to walk through.

The return value is an Integer. Usage Example:

  LinuxStat::FTW.count_directories(File.expand_path '~/.rvm/lib')
	 => 1

Internally calls LinuxStat::NFTW.count_directories(path).



96
97
98
# File 'lib/linux_stat/ftw.rb', line 96

def count_directories(path = __dir__)
	LS::NFTW.count_directories(path)
end