Nit: assign `err || FileSystemError.NOT_FOUND` should be simpler. Or if you still want to check for null, then use `err ? err : FileSystemError.NOT_FOUND;`.