adding file API for mkdir and getpath