By default document names are sanitized (i.e. trimmed) when making
requests to the Cozy.
However, some clients like Cozy Desktop require that the names they
pass to cozy-client-js are passed on untouched to the Cozy (in case
of Cozy Desktop, doing otherwise will lead to a de-synchronized state
between the local and remote trees).
We already have a noSanitize option that prevents the sanitation
from happening but it's only available when creating files via the
create method.
We now add and use this option in all methods that would otherwise
sanitize the document name by default.
By default document names are sanitized (i.e. trimmed) when making requests to the Cozy. However, some clients like Cozy Desktop require that the names they pass to
cozy-client-js
are passed on untouched to the Cozy (in case of Cozy Desktop, doing otherwise will lead to a de-synchronized state between the local and remote trees).We already have a
noSanitize
option that prevents the sanitation from happening but it's only available when creating files via thecreate
method. We now add and use this option in all methods that would otherwise sanitize the document name by default.