Implemented directory functions on Windows