Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] CreateFolder not working #43

Open
frank4040 opened this issue May 11, 2024 · 1 comment
Open

[BUG] CreateFolder not working #43

frank4040 opened this issue May 11, 2024 · 1 comment
Assignees

Comments

@frank4040
Copy link

Hi Koen,

Love your work! This is the first API I came across that actually works on private Onedrives.
The only thing that does not seem to be working is creating a folder.
When calling GetFolderOrCreate on a non existing folder, it always returns null and no folder is created (same when directly calling CreateFolder or CreateFolderInternal). This is BTW also the case in the included demo app.
Am I doing something wrong here? Or was there a change in the Graph API that causes this?


says:

POST https://graph.microsoft.com/v1.0/me/drive/root/children
Content-Type: application/json
{
  "name": "New Folder",
  "folder": { },
  "@microsoft.graph.conflictBehavior": "rename"
}

The last parameter seems to be missing, but I guess there should be some default behavior and not make the call break.
Even tried adding the parameter myself, but still the same result (could also be me doing it wrong)

Running on Windows 11, Visual Studio 2022, .NET Framework 4.8.

I'm puzzled, can't seem to make this work. Please help!

@frank4040 frank4040 changed the title [BUG] Brief description [BUG] CreateFolder not working May 18, 2024
@ispysoftware
Copy link

#46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants