I have read a similar/same question on this forum. but it doesn’t answer my question.
1.0 Some background. Last weekend, following a mistake I made without realising at the time, the connection between my Mac and my network scanner disconnected. The scanner IT people have been very helpful but unable to resolve the problem because it’s not clear where it is. Yesterday, I had a one hour call with AppleCare, the person identified the issue and resolved it. It appears that the problem was caused several years ago but. only emerged as a consequence of what I did last weekend. I knew that when I changed my computer a few years ago (iMac 27” to Mac Studio) almost all the folders came in via Dropbox even though I didn’t set out for that to happen. Having worked with most of the folders in a mess, I decided last weekend to tidy. Two things I did which I subsequently discovered must never be done was to rename the Desktop and Documents folders, because both.contain hidden system files.
1.1 I changed from Windows PC to Apple Mac in 2008 or thereabouts and bought into DEVONthink. Despite the 17 years experience of several Macs and OSs, yesterday’s conversation with the AppleCare person was the first time I learned how the folder hierarchy works. The person also told me that having iCloud and Dropbox clash and best to have just one, given that I also have and use Time Machine - (he showed me how to access Time Machine without using the ‘concertina’ and it’s much easier and quicker.)
1.2 Probably others know this, but I didn’t so it might be helpul for those that don’t. At root level (Macintosh HD) the system folder Users is the parent of Desktop and the user account folder the parent of Documents. System folders have an icon/logo on the front of the folder, as do application folders. One’s own folders can be added to Desktop and Documents; Desktop folder envisaged for working, Documents for everything else. In my Documents folder, I have a top level sub-folder Folders All for my sub-folders and files. I have added Folders All to Finder Favourites for my ease of reference and use. (I have hundred of folders whose names include the word ‘Documents’ so having them i n a separate sub-folder is easier for searching.)
2.0 When c’onnecting with iCloud, iCloud ‘removes’ Documents from system Users folder and creates a new folder Documents-Mac whose sub-folders are all the sub-folders in Documents. When disconnect iCloud, iCloud reverses that procedure. This brings me to my question.
For indexing files, Devonthink4 (DT4) links to a folder in Documents on the local HD but when I connect to iCloud that Documents folder is ‘taken’ by iCloud. What do I need to do to prevent iCloud from ‘taking’ the Documents folder. Alternatively, if were to put and keep the sub-folder on a external disk would that work for indexing?
Update
I have contacted Apple Care. I am told there is no way of excluding a folder from iCloud, Also, no way of adding a new folder above Users at HD level because iCloud takes them all. Therefore, the only solutions, subject to anything DT4 people and anyone else on this forum can come up with, are either to put the folder onto an external HD (presupposing that would work) or import the files into DT4.



