@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ServerFile other = (ServerFile) obj;
		if (id == 0) // newly created objects.
			return this.getPath().equals(other.getPath())
					&& this.getName().equals(other.getName());

		if (id != other.id)
			return false;

		return true;
	}