If the data has not fully synced to the server and the user runs a segment folder command, then we could present a message to the user to tell them that there is a mismatch in the number of files. i.e "the segmentation will not be performed because the client folder has X number of files, whilst the server has Y number of files. Perhaps the data is still being synced?"
This would likely require modifying the client to tell the server how many files are found in the folder when sending the segment instruction. The server would then check that its copy of the same directory has the same number of files.
If the data has not fully synced to the server and the user runs a segment folder command, then we could present a message to the user to tell them that there is a mismatch in the number of files. i.e "the segmentation will not be performed because the client folder has X number of files, whilst the server has Y number of files. Perhaps the data is still being synced?" This would likely require modifying the client to tell the server how many files are found in the folder when sending the segment instruction. The server would then check that its copy of the same directory has the same number of files.