Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete called twice in Cloud Files API

I am trying to implement a virtual drive using a Cloud Files API. I can not make Delete operation to work. For some reason the CF_CALLBACK_TYPE_NOTIFY_DELETE callback is called twice.

I have build two samples in C++ and in C# using two different approaches and in both cases I have the same results:

  1. CF_CALLBACK_TYPE_NOTIFY_DELETE is called.
  2. CF_CALLBACK_TYPE_NOTIFY_DELETE is called again.
  3. CF_CALLBACK_TYPE_NOTIFY_DELETE_COMPLETION is called.

This behavior is somewhat confusing. Can anybody explain why this happening and what should I do inside the second call? Can I somehow distinguish them and ignore one of these calls?

like image 377
user16668952 Avatar asked Sep 21 '25 11:09

user16668952


1 Answers

I reproduced this issue in Windows File Manager, but when I did "delete" operation in Powershell there was no the problem. So this probably bug or some limitation of Windows File Manager.

like image 117
MERLIN Avatar answered Sep 23 '25 12:09

MERLIN