Parentheses ' ' around file name with space using mount with seafile

What is the problem you are having with rclone?

When mounting a seafile folder using rclone, all files that have a space in the name get single quotes around their name in the filesystem (checked using simple ls in the mount point)

Run the command 'rclone version' and share the full output of the command.

rclone v1.66.0

  • os/version: raspbian 12.5 (64 bit)
  • os/kernel: 6.6.28+rpt-rpi-v8 (aarch64)
  • os/type: linux
  • os/arch: arm64 (ARMv8 compatible)
  • go/version: go1.22.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Seafile

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount seafile:/Notes/Movies/ /home/ragekit/caddy/www/notes/test/

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[seafile]
type = seafile
url = XXX
user = XXX
pass = XXX
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2024/06/07 16:12:25 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "mount" "seafile:/Notes/Movies/" "/home/ragekit/caddy/www/notes/test/" "-vv"]
2024/06/07 16:12:25 DEBUG : Creating backend with remote "seafile:/Notes/Movies/"
2024/06/07 16:12:25 DEBUG : Using config file from "/home/ragekit/.config/rclone/rclone.conf"
2024/06/07 16:12:35 DEBUG : pacer: low level retry 1/10 (error Get "https://seafile.eschatonaut.space/api2/server-info/": dial tcp: lookup seafile.eschatonaut.space on 192.168.18.1:53: read udp 192.168.18.8:44467->192.168.18.1:53: i/o timeout)
2024/06/07 16:12:35 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/06/07 16:12:38 DEBUG : pacer: Reducing sleep to 150ms
2024/06/07 16:12:38 DEBUG : Seafile server version 11.0.4
2024/06/07 16:12:38 DEBUG : pacer: Reducing sleep to 112.5ms
2024/06/07 16:12:38 DEBUG : pacer: Reducing sleep to 100ms
2024/06/07 16:12:38 DEBUG : fs cache: renaming cache item "seafile:/Notes/Movies/" to be canonical "seafile:Notes/Movies"
2024/06/07 16:12:38 INFO  : seafile library 'Notes' path 'Movies': poll-interval is not supported by this remote
2024/06/07 16:12:38 DEBUG : seafile library 'Notes' path 'Movies': Mounting on "/home/ragekit/caddy/www/notes/test/"
2024/06/07 16:12:38 DEBUG : : Root:
2024/06/07 16:12:38 DEBUG : : >Root: node=/, err=<nil>
2024/06/07 16:13:01 DEBUG : /: Attr:
2024/06/07 16:13:01 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2024/06/07 16:13:05 DEBUG : /: Attr:
2024/06/07 16:13:05 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2024/06/07 16:13:05 DEBUG : /: ReadDirAll:
2024/06/07 16:13:05 DEBUG : /: >ReadDirAll: item=6, err=<nil>
2024/06/07 16:13:05 DEBUG : /: Lookup: name="Men (2022).md"
2024/06/07 16:13:05 DEBUG : /: >Lookup: node=Men (2022).md, err=<nil>
2024/06/07 16:13:05 DEBUG : Men (2022).md: Attr:
2024/06/07 16:13:05 DEBUG : Men (2022).md: Set virtual modtime to 2023-03-24 15:26:29 -0400 EDT
2024/06/07 16:13:05 DEBUG : Men (2022).md: >Attr: a=valid=1s ino=0 size=10 mode=-rw-r--r--, err=<nil>
2024/06/07 16:13:05 DEBUG : /: Lookup: name="The Descent.md"
2024/06/07 16:13:05 DEBUG : /: >Lookup: node=The Descent.md, err=<nil>
2024/06/07 16:13:05 DEBUG : The Descent.md: Attr:
2024/06/07 16:13:05 DEBUG : The Descent.md: Set virtual modtime to 2023-02-24 08:09:23 -0500 EST
2024/06/07 16:13:05 DEBUG : The Descent.md: >Attr: a=valid=1s ino=0 size=0 mode=-rw-r--r--, err=<nil>
2024/06/07 16:13:05 DEBUG : /: Lookup: name="Untitled.md"
2024/06/07 16:13:05 DEBUG : /: >Lookup: node=Untitled.md, err=<nil>
2024/06/07 16:13:05 DEBUG : Untitled.md: Attr:
2024/06/07 16:13:05 DEBUG : Untitled.md: Set virtual modtime to 2024-06-05 16:41:45 -0400 EDT
2024/06/07 16:13:05 DEBUG : Untitled.md: >Attr: a=valid=1s ino=0 size=7 mode=-rw-r--r--, err=<nil>
2024/06/07 16:13:05 DEBUG : /: Lookup: name="Watch List.md"
2024/06/07 16:13:05 DEBUG : /: >Lookup: node=Watch List.md, err=<nil>
2024/06/07 16:13:05 DEBUG : Watch List.md: Attr:
2024/06/07 16:13:05 DEBUG : Watch List.md: Set virtual modtime to 2024-06-05 15:07:45 -0400 EDT
2024/06/07 16:13:05 DEBUG : Watch List.md: >Attr: a=valid=1s ino=0 size=444 mode=-rw-r--r--, err=<nil>

welcome to the forum,

did not see a question in your post?

sorry, not understanding what quotes have to due with what might be a dns/network issue?
dial tcp: lookup seafile.eschatonaut.space ... i/o timeout
and after that, the rest of the debug log looks ok

perhaps test with a simpler command
rclone ls seafile: -vv --retries=1

oh sorry, the question was : why is there parentheses !
Using rclone ls seafile: -vv --retries=1
All is good, I see the filename without parenthesis

       10 Men (2022).md
        0 The Descent.md
        7 Untitled.md
      444 Watch List.md

But this is what I see with mount

'Men (2022).md'  'The Descent.md'   Untitled.md  'Watch List.md'

( and ) are parentheses
' is a quote
so your question is about quotes, not parentheses, correct?

when you list files with rclone ls, you get the exact filename.
when you list files on a mount, it is the operating system, that adds the quotes.

the quotes are added by the OS, same as any file with a space character.
notice that Untitled.md has no space character, so the OS does not enclose the filename with quotes.

does all that make sense?

yeah quotes, sorry !

Ok ! that all makes sense ! I don't know why i didn't know linux was adding quotes around names with space ....

Thank you !

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.