CreateFileChange (RootEntry root, String path, String content, long timestamp, boolean isReadOnly) { root.ensureDirectoryExists(Paths.getParentOf(path)).addChild(new FileEntry(Paths.getNameOf(path), c(content), timestamp, isReadOnly)); return new CreateFileChange(nextId(), path); }