CloudMirror Sample:The callback handling for deletion was added to the official example CloudMirror,but sometimes the returned deletion path is different.Why?
zobinimm opened this issue · 0 comments
In example CloudMirror, a callback handling for deletion was added, and the code reference URL is:
zobinimm@499874b
I created the following directory structure in the server's folder.
server's folder:CloudServerTest
│ ├─10txtFiles_1
│ │ 1_0001.txt
│ │ 1_0002.txt
│ │ 1_0003.txt
│ │ 1_0003_1.docx
│ │ 1_0004.txt
│ │ 1_0005.txt
│ │
│ ├─10txtFiles_2
│ │ 1_0001.txt
│ │ 1_0002.txt
│ │ 1_0003.txt
│ │ 1_0003_1.docx
│ │ 1_0004.txt
│ │ 1_0005.txt
After running CloudMirror, open the [10txtFiles_1\1_0003_1.docx] file in the client's folder, then delete the [10txtFiles_1] folder.
An alert indicates that the [1_0003_1.docx] file is in use, and the deletion process is interrupted.
console output:
Processing change for D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0003_1.docx
Processing change for D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0003_1.docx
2024-01-08 16:23:48.958 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0001.txt
2024-01-08 16:23:48.959 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0001.txt
2024-01-08 16:23:48.961 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0002.txt
2024-01-08 16:23:48.962 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0002.txt
2024-01-08 16:23:48.964 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0003.txt
2024-01-08 16:23:48.965 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0003.txt
2024-01-08 16:23:48.966 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0004.txt
2024-01-08 16:23:48.966 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0004.txt
2024-01-08 16:23:48.967 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0005.txt
2024-01-08 16:23:48.967 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0005.txt
2024-01-08 16:23:48.979 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0001.txt
2024-01-08 16:23:48.980 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0002.txt
2024-01-08 16:23:48.981 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0003.txt
2024-01-08 16:23:48.983 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0004.txt
2024-01-08 16:23:48.984 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_1\1_0005.txt
The console output only shows the paths of the files in the [10txtFiles_1] folder and does not output the path of the [10txtFiles_1] folder itself.
Once again, open the [10txtFiles_2\1_0003_1.docx] file and then delete the [10txtFiles_2] folder.
An alert indicates that the [1_0003_1.docx] file is in use, and the deletion process is interrupted.
console output:
Processing change for D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0003_1.docx
Processing change for D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0003_1.docx
2024-01-08 16:24:08.636 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0001.txt
2024-01-08 16:24:08.638 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0001.txt
2024-01-08 16:24:08.639 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0002.txt
2024-01-08 16:24:08.640 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0002.txt
2024-01-08 16:24:08.641 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0003.txt
2024-01-08 16:24:08.642 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0003.txt
2024-01-08 16:24:08.643 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0004.txt
2024-01-08 16:24:08.643 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0004.txt
2024-01-08 16:24:08.644 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0005.txt
2024-01-08 16:24:08.645 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0005.txt
2024-01-08 16:24:08.654 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2
2024-01-08 16:24:08.657 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0001.txt
2024-01-08 16:24:08.658 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0002.txt
2024-01-08 16:24:08.659 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0003.txt
2024-01-08 16:24:08.660 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0004.txt
2024-01-08 16:24:08.661 Path = D:\NOTIFY_DELETE_TEST\CloudClientTest\10txtFiles_2\1_0005.txt
The console output now shows both the paths of the files in the [10txtFiles_2] folder and the path of the [10txtFiles_2] folder itself.
Why did the same operation not output the folder path the first time but did so the second time?
Perplexed!!!