Wish show alert/log if any file found to be newer than the one been copied via shared directory copy to files folder

AnandGupta

Expert
Licensed User
Longtime User
@Erel , please add code to show alert/log if any file found to be newer than the one been copied via shared directory copy to files folder.

This will prevent problem as below,
Solved - Views disappearing from layout | B4X Programming Forum

This will also help new users as this feature is not so common to users coming from another programming language and this will save their valuable time, also of experts here.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The best that can be done with the current way it is implemented is to add the /XO argument:
B4X:
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" /XO
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&args=/XO&FilesSync=True
This will prevent older files from the shared folder to be copied. This is not a perfect solution as you will get different versions of the same file in the different platforms.
 

AnandGupta

Expert
Licensed User
Longtime User
The best that can be done with the current way it is implemented is to add the /XO argument:
B4X:
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" /XO
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&args=/XO&FilesSync=True
This will prevent older files from the shared folder to be copied. This is not a perfect solution as you will get different versions of the same file in the different platforms.
Good. At least this will not create the bewildered problem faced by developers. They will see what they expect.
In another platform they will know they did not copied to shared folder so showing old one.
 
Top