EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OnRenameOrMove

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#11219
Posted: 10/02/2009 06:16:03
by Steven Crouchman (Standard support level)
Joined: 05/05/2009
Posts: 17

We are testing some applications with our implementation and noticed that Tortoise SVN tries to move a file over the top of one that already exists. As the file exists we throw an appropriate ECBFSError.

As this process should work, further investigation shows that SetRenameInformationFile is called with ReplaceIfExists equal to true but I can't see how this is passed to the OnRenameOrMove event. Are we missing something obvious? Your examples always overwrite the file which doesn't seem like correct behaviour.
#11220
Posted: 10/02/2009 06:35:27
by Volodymyr Zinin (EldoS Corp.)

Hi,
The destination file must always be overwritten (if it exists).
The flag ReplaceIfExists is handled internally by CallbackFS and that is why it isn't passed to the OnRenameOrMove callback.
#11223
Posted: 10/02/2009 07:18:23
by Steven Crouchman (Standard support level)
Joined: 05/05/2009
Posts: 17

Oh, is this in your reference somewhere? Thanks for getting back to me so quickly.
#11225
Posted: 10/02/2009 07:50:20
by Volodymyr Zinin (EldoS Corp.)

No, but we will add this info.

Reply

Statistics

Topic viewed 3423 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!