Resilio Connect Agents create a hidden .sync directory with some service files in the root of synchronized folder. It is created for all agents in Sync and Script jobs. In transfer jobs - only destination agents have it. By this directory the agent recognized the folder it shall work in. Deleting .sync folder for an active Job renders "Cannot identify destination folder" error for agent.
Here's the structure of .sync. Not all of the items there are present all the time. Some of them are specific for certain types of jobs and agent settings there. The image does not illustrate all of them.
1) Archive folder. This is the folder with file version and files deleted from remote agents. Read more about Archive here. It's always created. If Archive folder is deleted, Agent won't be able to store files here until restarted.
If agent is removed from job or job itself is removed, Archive remains on disk.
3) ID file. Identifier of directory. It has unique share ID hash encoded inside. All agents in same job have same shareID. Deleting or changing ID file causes "Cannot identify destination folder" error.
If agent is removed from job or job itself is deleted, ID file is removed from disk as well.
4) IgnoreList. A plaintext file which keeps rules for items that Agent will ignore. Read MOre about IgnoreFile here.
If agent is removed from job or job itself is removed, IgnoreList remains on disk.
5) root_acl_entry. A service file that makes agent track NTFS and POSIX permissions change for the shared folder itself. Don't touch this file.
If agent is removed from job or job itself is deleted, root_acl_entry is deleted from disk.
6) Streams folder. Agent is capable of syncing extended files attributed (xattrs) and alt streams. If the operating system does not support a synced streams format, these are stored in Streams directory so as not to break synchronization. Agent can pass these over to other agents.
7) StreamsList. A plaintext file that instructs agent to synchronize files xattrs. Read more about Streams here.
8) Files with .!sync extension. It's the file that is being downloaded now. When agent is syncing a file, it first write it into .sync directory and then moves to its proper place.