code: public void setEntries(List<FatDirectoryEntry> newEntries) {
          if (newEntries.size() > capacity)
              throw new IllegalArgumentException("too many entries");
          
          this.entries.clear();
          this.entries.addAll(newEntries);
      }
docs: Replaces all entries in this directory.
  
  @param newEntries the new directory entries