Adding support for directory operations

Adding support for directory operation and rename function.