B4X FEED Syncronisation between local and remote folders... need advice.

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Syncronisation between local and remote folders... need advice. است. این موضوع تا کنون 41 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Syncronisation between local and remote folders... need advice.
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
41
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi guys and gals

My app will have a "sync" button, and or schedule...
The purpose will be to sync a "root" local folder with it counter-part remote one...
As for now, I only forsee the need to make sure that the remote folder mirrors the local one, and not the other way around...
Let's think of this as a survey app, which, either by user-click or by scheduling, updates the contents of a remote folder to mirror the local one...
What is best pratice to, and how to make sure that I don't end up always just copying/replacing existing files on the remote folder...

In my brainstorming session, I started thinking about creating a "TOC" file in to each subfolder, and another into the "root" folder listing current folders...
Then, when syncing, got through each TOC and compare to it's counterpart... if different, delete folder in remote and copy new from local...
Is this a good approach?

 

عقب
بالا