Extended functionality and promises adaptation of fs