[REQUEST] Name of file the sync.ffs_lock disrupts handling of files

Discuss new features and functions
Posts: 76
Joined: 8 Jun 2023

Synchronizator

I understand the need for presence of the hidden file named

sync.ffs_lock

in folders that are part of the folder-pairs setup by user - but these files could be easily made less intrusive


For comparison Microsoft Office 2010 Excel creates locked files whenever it opens a spreadsheet file - but it does it gracefully by creating e.g.

~$test file.xlsm

doppelganger for a file named

test file.xlsm

So Excel makes them highly noticeable and expected always in the same place - i.e. at the beginning of the list of files in a folder. And yes: I know that the order of the alphabet sort does not change- and thus the sync.ffs_lock will always be in a predictable place. But this is still impractical for file handling, because are users expected to always remember what folder is monitored and to also check if it is occurring in a given moment - or suffer the annoying consequences of coping / moving / mass-renaming / deleting of items that were blindly selected en masse (like with the CTRL + A shortcut) i.e. selected with inclusion of that blocked FFS_LOCK file? And again yes: I know that this file is hidden, so it theory should not interfere with handling of others - but in practice some of those others files can also be hidden and thus I personally often have visibility of hidden items turned on in my daily used filemanager

And so, I propose appending / changing name of the FFS_LOCK file, so that it too would always be at the top of files sorted with alphabetically descending order. Or even better: to give users the ability to choose the name for this file, so that they themselves can make them be placed precisely (before or after such Excel temporary files) and / or to make them stand out / be easily findable by changing their names to for example

SSSsync!!!.ffs_lock

or

ZZZ██████████ temp.ffs_lock

I myself would use some ZZZ-beginning-long-name, because whenever I would have doubts if a given folder is monitored / locked, then 99.99% of time I could just push down the Mouse Scroll Wheel and scroll it down with just one swift finger movement - because such action would practically instantly reveal the end of list of files and thus quickly inform me visually if the FFS_LOCK file for current folder is present
User avatar
Posts: 4866
Joined: 11 Jun 2019

xCSxXenon

This wouldn't solve your hypothetical situation where a user selects all files and manipulates them. The purpose of these lock files is so other FFS sessions don't access the same base locations simultaneously. If this isn't a concern, you can check the documentation and disable this feature.
Changing the name changes literally nothing except where it would display in the list. If a user is capable and willing to be conscious enough to have hidden files visible and actively look for a FFS lock file, the name/position of it is irrelevant aside from personal preference.
Or if users are using data while FFS is running often enough, it might be worth scheduling FFS syncs outside usage hours?
Posts: 76
Joined: 8 Jun 2023

Synchronizator

And by FFS sessions you mean multiple instances of the program, each with some Job being executed by it?
Posts: 76
Joined: 8 Jun 2023

Synchronizator

Well?