Convert file system to use callbacks instead of promises.