Cloud Files API - explorer.exe locking folders and prevents rename

Pierre Dupont 0 Reputation points
2024-05-02T07:27:17.5033333+00:00

We are implementing a cloud sync engine using the cloud files API. Not sure where to report this issue but I am trying here.

Everything is working more or less as expected.

However if I create a folder hierarchy of 2 or more folders, say folder A has a child folder B which has another child folder C.

Whenever I open folder C in the file explorer I am no longer able to rename, delete or move folder A.

It states The action can't be completed because the folder or a file in it is open in another program.

It does not happen when opening folder A but only when navigating into folder C.

No files are present in the folders, only the folder hierarchy and it happens every time and can be reproduced 100% on my end.

This also happens on our customers system as well as our QA systems.

Screenshot 2024-05-02 083520

I checked the open handles using Powertoys File Locksmith and the Resource Monitor and only explorer.exe has open handles on the folder and subfolders.

Screenshot 2024-05-02 083452

If I restart explorer.exe the folder can be changed again.

This is also an issue with OneDrive, so I can assume it has nothing to do with our own implementation of the cloud files API.

Also needless to say, this only happens when interacting with folders below a sync root and not on the "regular" file system.

I am using Windows 10.0.19045. The issue also seems to happen on Windows 11 but somehow less frequent.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,054 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,184 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 7,235 Reputation points Microsoft Vendor
    2024-05-03T01:28:38.6466667+00:00

    Hi @Pierre Dupont

    I suggest you post a new thread in Microsoft Tech Community --- OneDrive Developer: https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments