This will not work. If you update a file called Shared/foo.txt than create file will be called with /Shared/foo.txt-chunked-transactionid-part. Since you can't create a new file in Shared/ the test above will always fail. I don't see a different solution than also handling chunked files directly in createFile().