Useful .stignore Patterns

(Cyphase) #21

You’re welcome! Almost all of the activity has been in the last few days; I guess there are a lot more people here than there were in mid-October 2014 :smile:.

Are you sure you don’t want those synced? They’re there to try to prevent multiple people from editing a file at the same time. Sure, if you’re the only person on all the peers, that’s not much of an issue (unless you leave it open/unsaved on one machine while trying to open it on another). But if you’re syncing between multiple people, it could be very useful. Plus, they’re very small files, just describing who has the document open for editing, so they aren’t causing a lot of churn.


No; I was waiting for an answer on my question about Synology devices, but then I forgot :stuck_out_tongue:. But either way, @eaDir should be there.

Ah yes :smile:. I fixed the link, but forgot the text.



There are indeed, that’s a fantastic thing! Thank you for making this useful list!

@robsonsobral I think transferring lock files for LibreOffice makes sense, especially if you’re using inotify. This prevents document over-writing with 2 users writing to the same file.

Are you seeing a lot of file churn with LibreOffice temp files?

(Robson Sobral) #23

Ok, guys! You’re both right! Let’s keep the lock files free from chains!

@Cyphase, you can improve the comment on @eaDir folders. They are used for thumbnail files associated with media services on Synology. (Meaning: the Synology version of Thumbs.db.)


I was going to mention another option is @Cyphase could include the LO temp files if you’re seeing a problem with them, but include a warning as to the importance of them.

(Zukoo) #25

I double checked it is *.!sync

(Robson Sobral) #26

Thanks, @xHN35RQ. There’s no need. I’m fine! You made an excellent point on them.


You are right, excluding only @eaDir does the trick.


Hi, I’ve got a naive question, sorry for that: How do you create the .stglobalignore file on windows? Even by renaming a copy of the .stignore file the system keeps thinking that stglobalignore is the extension and prompting me to enter a filename…

Thank you!!!

(Robson Sobral) #29

To create a file without a name, just an extension, is tricky on windows, but not so hard.



Windows will remove the last dot and you’ll get:


(Robson Sobral) #30

I’m sorry for the dumb question. Where should I save the .stgloablignore?

I don’t know of anybody trying to sync a folder which is also on Dropbox, but… DropBox files:

  • .dropbox
  • .dropbox.attr

One pattern should be enough for both.

(Audrius Butkevicius) #31

There is no .stglobalignore


From what I understand we can just put it in the synced folder so that it “travels” with the regular files to the other peers. There, since the .stignore file has been manually set to refer to .stglobalignore (cf first post), it will be taken into account in due time. So probably the name of the file doesn’t matter, provided all the peers have the same reference in their .stignore files for the given folder. Or else i did not understand anything and please correct me!

(Robson Sobral) #33

I guess we are both confuse. Maybe… Who knows? WTH is .stglobalignore? Who killed Laura Palmer?

(Graeme Blackman) #34

For linux users

  • .directory
  • Trash-*

(Zillode) #35

This is correct.

(Discourse won’t let me post something smaller than 20 chars so please ignore this line)

(Cyphase) #36

Naming it .stglobalignore is just a convention. You can name it whatever you want, as long as it’s included from your .stignore file.

Spoiler alert!

(Cyphase) #37

I think you mean .Trash-* :smile:. But what’s .directory?

(Graeme Blackman) #38

Oops - yes it should have been .Trash-*.

.directory may be a KDE thing. It is a meta data file that KDE apps write to (things like whether dot files are visible, the icon for that folder, etc), so every directory ends up with one. But it shouldn’t be synced.

(David Rimmer) #40

:innocent: :innocent:


If there is a QNAP NAS client somewhere, ignoring the .@_thumb directory could be useful too…