> Hello Evert,
>
> I'm testing a database-backed SabreDav virtual filesystem. On OS X,
> when
> you create a new file, the Directory::createFile() method is called
> twice. Is this a known issue with OS X, and how should this be handled
> using SabreDav?
Hey Michael,
I have cc-ed this to the mailing list. Would you mind posting any
follow-ups there?
http://groups.google.com/group/sabredav-discuss
I've seen this before,
OS/X Finder is a really bad behaving client. If you do see createFile
being called twice, it must mean 1 of two things:
1. You're actually seeing different files being created (resource
forks).
2. The file gets created, deleted, and then created again.
#1 can be remedied using the temporary file filter:
http://code.google.com/p/sabredav/wiki/TemporaryFileFilter
#2 is something your database backend should accommodate for. I don't
really have an easy answer here, but these types of behaviours are
unfortunately not uncommon.
Evert