Skip to main content

Filename restrictions on OpenCloud Desktop

When using the OpenCloud Desktop Client, file and folder names must meet certain operating system (OS) requirements to ensure seamless sync across different platforms. These restrictions are not enforced by OpenCloud but originate from system limitations.

Key Guidelines

  • Avoid using prohibited characters or reserved words in filenames on any OS.
  • If syncing from Linux/macOS to a Windows-based share, make sure filenames are compatible with Windows naming restrictions.
  • To change casing (e.g., File.txtfile.txt) on Linux/macOS when syncing to Windows, rename the file to a completely new name, let it sync, then rename it to the desired casing.

Common Limitations

a. Maximum Path Length

Windows limits file paths to 260 characters by default.
If your sync root exceeds this, the Desktop Client will warn:
"The path 'YOUR.LONG.PATH' is too long. Please enable long paths in the Windows settings or choose a different folder."

On Windows 10 and later, you can remove this limit by enabling Long Paths. See Microsoft’s documentation.

b. Forbidden Characters

| OS | Forbidden Characters | | ------- | ------------------------------- | ------------ | | Windows | <, >, :, ", /, \, |, ?, \* |

c. Non-Printable ASCII Characters

  • Linux/macOS: NUL (character code 0)
  • Windows: ASCII 0 – 31
    While valid on some systems, such characters often cause issues during syncing.

d. Reserved Filenames (Windows)

Avoid using any of the following as filenames:
CON, PRN, AUX, NUL, COM1COM9, LPT1LPT9

e. Special Rules

  • On Linux/macOS syncing to SMB, filenames that differ only by case may cause conflicts—rename files clearly to avoid sync failures.
  • Windows: Filenames must not end in a space or period (.).

Example

Creating a file named example. or example.LPT1 on macOS may sync to OpenCloud successfully. However, when accessed via a Windows client, these files may be rejected due to reserved naming or format rules, leading to inconsistent sync behavior across devices.

Summary

Restriction TypeAction Item
Path LengthKeep paths under ~260 characters unless extended
Forbidden CharactersRemove disallowed characters from names
Control CharactersAvoid non-printable ASCII characters
Reserved FilenamesDo not use Windows reserved names
Case-Only ChangesRename to a temporary name before syncing
Trailing CharactersAvoid filenames ending in space or period