Score:0

mkdir: cannot create directory '{filename}': File exists

ve flag

For context I'm using rclone to copy a folder into a mnt point.

This works until I try to remount, I get the following error

mkdir: cannot create directory 's3': File exists

However when I browse to the folder it is empty, and when i try the raw command:

mkdir s3

I get the same error

ls returns nothing

dir returns nothing

ls -a returns:

. ..

in flag
It might help to add, here or in a pastebin, the actual rclone command and the actual [re]mount command that you're using and the relevant lines of output of `mount` itself. My instinct suggests you're coming up against either a problem with nested directories like in https://askubuntu.com/q/561212/29073 or a problem in how you're trying to use mount.
Mr Giggles avatar
ve flag
Thanks. But the issue not really with rclone, but Ubuntu and the mkdir command. When I browse to the folder and use mkdir from the terminal, I get the error above. My question is more about the file system in general of how can mkdir fail to create a folder and state because it does exist, when it doesn't.
Score:1
ve flag

The issue I had was the mount was still present, but the folder was not, to fix this I had to run

umount {thePath}

which then allowed the folder to be recreated

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.