When I try to launch any minecraft version on that game directory (C:/Users\MyName\Onedrive\Documents\.minecraft), the launcher gives me this error message:
Unable to create directory.
Error details: Impossible de créer un fichier déjà existant
Filename on disk: .minecraft
Path: C:/Users\Bryan\OneDrive\Documents\.minecraft
Exists: true
Translated in English, it means "Can't create already existing file"
Although I understand that minecraft isn't supposed to run on Onedrive, it was working fine till now. So there's no reason it shouldn't work after an update.
It gives me this same error if I copy the .minecraft that is on Onedrive and paste it anywhere else and then change the game directory in my launcher.
Steps tried to avoid the problem, without success:
1) Choose "Always keep on this device" for the destined folder inside OneDrive
2) Starts Minecraft Launcher using "Run as administrator"
3)Launch minecraft while the OneDrive client is completely closed
EDIT:
The error is probably a problem with the new OneDrive on demand file system. It seems like the directories inside OneDrive are actually files, not directories, though you can navigate through them with the file explorer. That's probably why minecraft won't launch, because it sees that there is a file named .minecraft, so it can't create a directory with the same name.
So basically, minecraft can read and write inside files on OneDrive, but everything that is in a directory can't be modified or read.
2nd EDIT:
I can confirm that IT IS NOT a problem that affects all java programs. I just created a small java program that reads a file inside a directory in OneDrive. It can do it without any problems. Also I checked with File().isDirectory() and File().isFile to see if my .minecraft was considered by java as a file and it isn't, java can see that it's a directory.
Linked issues
is duplicated by 1
Attachments
Comments 5
Hi,
I've been using Minecraft through OneDrive for years (but I had to suspend OneDrive while playing, otherwise OneDrive would crash), and today I tried to go back to Minecraft, I encountered the same issue.
I can confirm it's because of the Files On-Demand feature (but I don't know what exactly happens when the launcher tries to access to the files...), it does this with the version json too (my .minecraft was symlinked to OneDrive, just after the Windows update my symlink became broken, so I did another one and, even if it works in the windows explorer, Minecraft can't "access" to its files, while it can read and modify the launcher_profiles.json stored on OneDrive...)
My Minecraft folder is already "always on my device", though.
I think Microsoft severely modified the OneDrive folder properties (it's seen as a... file, not a directory, from Ubuntu), notice how Minecraft replaces C:\Users by C:/Users... and it still won't work even if I completely close the OneDrive client.
OneDrive should automatically download the online files the launcher tries to access (while they are downloading, the launcher may hang, but that's not a big deal), but I don't know why it wouldn't work when the files are downloaded.
This problem just started for me too on 2018-04-06 (Y-M-D).
Unable to create directory.
Error details: Cannot create a file when that file already exists
Filename on disk: Minecraft
Path: C:/Users\steve\OneDrive\Minecraft
Exists: true
Launcher version: 2.0.1003
Minecraft release: 1.12.2
Windows 10 Home, version 1709, OS build 16299.309
I have no troubles on my other computer though. The only difference in the specs listed above is that it's Windows Pro. Maybe Windows Home handles OneDrive directories differently than Windows Pro and the launcher hasn't accounted for this difference.
Experiencing the same issue. Issue only occurs after OneDrive updated to support Files On-Demand, alongside Windows 10 Fall Creators Update.
Steps done to try to overcome this issue, but to no avail:
1) Choose "Always keep on this device" for the destined folder inside OneDrive
2) Starts Minecraft Launcher using "Run as administrator"