That's a good point. I'm not sure how detectable that is, though. I
suppose I can detect if the assigned file is an Attachment (which is
being done anyway) and then check the paths against each other.
Really though, I'm skeptical how common this really is. The situations
where that would be the case are few, as if you're not scoping your
directories by class and attachment name (or not class name and your
attachment is named the same), then you'd need the IDs to collide. How
often would that happen? I'd say that if you have paths that aren't
unique enough for this, you'll likely have problems anyway, right?