Change behaviour based on the filesystem API version.