在多个文件夹中同步失败 [英] Sync failing in multiple folder

查看:85
本文介绍了在多个文件夹中同步失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


      我自己使用相同的应用程序进行文件同步,并在执行同步文件时面临一个问题,任何人都可以回答我任何答案吗?


问题:文件同步回调返回删除文件而不是复制:我在我的本地机器上创建了3个文件夹,(即test,test1,test2)我在test1文件夹中复制了一个文件并启动了test和test1同步,这次将新文件复制到test文件夹中,预计
然后完成同步"test and test2"  然后这次而不是将文件复制到test2文件夹它从测试文件夹中删除文件,我希望在测试文件夹中创建新文件然后它应该复制到test2文件夹。


am使用示例在MSDN中给出的应用程序。

解决方案

嗨 -


看起来你可能没有指点您的同步到正确的元数据存储文件。使用元数据存储文件初始化文件同步提供程序时,请务必使用相应的正确文件对其进行初始化。此外,请确保每次
重置您的测试场景时,您需要删除此元数据存储文件。


谢谢

Deepa


Hi,

       I used same application by my own to do File sync and am facing one problem while doing syncing files, Could any one reply me any answer?

Problem: File Sync callback returning Delete file instead of Copy : i created 3 folders in my local machine, (i.e test, test1, test2) I copied one file in test1 folder and started test and test1 sync, this time new file copied to test folder which is expected and then done sync "test and test2"  then this time instead of coping file to test2 folder it's deleting file from test folder, I expected new file is created in test folder then it should copy to test2 folder.

am using sample application given in MSDN.

解决方案

Hi -

It looks like you might not be pointing your sync's to the correct metadata store files. When initialiazing the file sync provider with a metadata store file , be sure to initialize it with the corresponding correct file. Also, be sure that everytime you reset you test scenario you need to delete this metadata store file.

Thanks
Deepa


这篇关于在多个文件夹中同步失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆