def self.append(filename, data, options = {}) # rubocop:disable MethodLength, AbcSize
      write_options = WriteOptions.new(filename, options)

      FileUtils.mkdir_p(::File.dirname(filename))
      ::File.open(filename, 'a', write_options.perm) do |file|