cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Drive - Exclude some files of the synchronisation

Pierre_Jenicot1
Star Contributor
Star Contributor

Hi,

Can we exclude some files in the synchronization of NuxeoDrive?

For example, when editing a ODT file with LibreOffice / OpenOffice, it automatically creates a .lock file and it is synchronized by NuxeoDrive the repository.

Problem: When you are subscriber notification on the folder, an email is received for the .lock file

Thks

2 REPLIES 2

ataillefer_
Star Contributor
Star Contributor

Hi,

There is a set of prefixes / suffixes that should be ignored by Drive:

DEFAULT_IGNORED_SUFFIXES = [
    '~',  # editor buffers
    '.swp',  # vim swap files
    '.lock',  # some process use file locks
    '.LOCK',  # other locks
    '.part',  # partially downloaded files
]

DEFAULT_IGNORED_PREFIXES = [
    '.',  # hidden Unix files
    '~$',  # Windows lock files
    'Thumbs.db',  # Thumbnails files
]

Strange that in your case the .lock file is uploaded to the server.

In my case, under Ubuntu, when editing an ODT file with LibreOffice, the temp file is named .~lock.Test.odt#, so it is ignored because it starts with a dot (.)

What is your OS and version of Nuxeo Drive?

Note that for now you cannot customize these prefixes / suffixes as they're hardcoded in the client code, yet this improvement is planned and tracked by NXDRIVE-158.

Pierre_Jenicot1
Star Contributor
Star Contributor

I'm under Ubuntu 12.04 with LibreOffice 4.3

When I open an ODS file with LibreOffice, the file ".~Lock.Main courante.ods#" synchronizes and gets directly into the trash.

alt text

alt text

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.