macOS: “touching” OneDrive folder forces it to re-sync

Visitor

Hi OneDrive team,

 

We need your help with the OneDrive folder sync process while scanning it.

 

Developing our own solution that is scanning Mac, we've just faced an issue where scanning the OneDrive folder forces the service to re-sync all the files with the server.

 

We are using several calls to the location, scanning it, exactly these two (ObjC):

 

MDItemRef item = MDItemCreate(kCFAllocatorDefault, (__bridge CFStringRef)anItemPath);

 

or

 

 [[NSWorkspace sharedWorkspace] iconForFile:path]

 

 

Do you know if there are any solutions, like ignore list, APIs, or any similar, that won't cause files re-sync?

 

Thanks!

0 Replies