Added directories related methods.
Added directories related methods.