Azure blob mounted as drive in windows does not work with space in filename

What is the problem you are having with rclone?

Mounted a drive for our blob storage in azure, but when i try to create a "new folder" or copy anything that has a space in the name to it, it fails because of the space

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

- os/version: Microsoft Windows Server 2022 Datacenter Azure Edition 21H2 (64 bit)
- os/kernel: 10.0.20348.2700 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: cmount

Are you on the latest version of rclone? You can validate by checking the version listed here:
--> yeah just downloaded today

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

Microsoft Azure blob storage

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

Using rclone as a service to mount a network drive in windows, no command used.

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

[test0blobbystorage]
type = azureblob
account = XXX
key = XXX
tenant = XXX

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

Logs read as follows (quite obvious what the issue is)

http://box.kaetzle.in/code/text.txt

How do i escape the space without windows noticing? Is it something I can configure in rclone? or can i configure it in WinSCP? or do i just live with it and make directories with mkdir? Seems like a pretty simple fix, just replace all spaces with e.g. an underscore?
Just want to know if that is something rclone supports or if i should just work with it (I don't really mind but if the option is there i wana use it)

You can not have spaces in containers names. This is how it works with Azure:

Paths are specified as remote:container (or remote: for the lsd command.) You may put subdirectories in too, e.g. remote:container/path/to/dir.

Only within container you can do what you want. Check Azure docs for containers allowed characters.

Yes, I know I can't have a space, but I'm curious if rclome or winsfp has any built in workarounds for this limitation, that perhaps switches the space for an underscore or some other supported character

Nope. Not even sure how it would be useful to be honest.

Recommended would be to create a container and mount that instead.

1 Like

oh so mounting a container as opposed to the storage root allows for spaces in filenames? well that solves the issue then, i didn;'t know, i'll give it a test thanks!

1 Like

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