Problem with OneDrive

Discuss new features and functions
Posts: 9
Joined: 22 Nov 2021

MikeShawn

Microsoft has been no help so maybe some one on here can help. I currently store a large number of files on my X: drive. To back them up to the cloud I use FFS to make a mirror copy into my OneDrive folder. That part works great, thank you FFS! After OneDrive syncs all of the new files with the cloud backup, I want to delete the files off my C: drive. I cannot use "Free Up Space" because that MS feature is grayed out. The problem, I believe, is that FFS is copying the files into my OneDrive folder as "Keep on this machine." That negates my ability to remove the new files unless I hunt them down one by one and change their status. MS offered one solution but that was to make all of the files available on my machine and then I can use the free up space function. So, they want me to download 50 GB of files just to be able to free up 50 MB. Is there a way for FFS to copy the file over and not set the status to "Keep on this machine?"
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

That won't be possible until OneDrive is natively supported.
Here: viewtopic.php?t=5113
This thread explains some people working with mapping their OneDrive as a drive letter, then you are syncing directly to the cloud instead of to a local folder and then uploading.
Posts: 9
Joined: 22 Nov 2021

MikeShawn

Thanks. That would be the ideal solution since i could then bypass the C: drive completely. Latest from MS is I have system corruption even though I told them I just did sfc repair followed by Dism to confirm. Actually, the guy admitted he didn't know what was wrong, that's a first.
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

sfc/dism is always what Microsoft will suggest, and they are very valuable tools, but only in the right situations. You don't have a problem to fix, so those won't be of any help.
Posts: 9
Joined: 22 Nov 2021

MikeShawn

Actually, MS did not recommend them. They just assumed I have system corruption and recommended I reinstall Windows and all of my programs and apps. I ran sfc, repaired Windows, and I still have the problem with OneDrive. For some reason FFS sets the file flag to "keep" when making the copy. If I can get it to stop everything should work fine. I also use Dropbox and their "free up space" works fine.
Posts: 9
Joined: 22 Nov 2021

MikeShawn

I've been able to dig up a little more info on my problem. Shown below are the file attributes used by OneDrive:
- online-only
FILE_ATTRIBUTE_PINNED : False
FILE_ATTRIBUTE_UNPINNED : True
FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS : True

- locally available
FILE_ATTRIBUTE_PINNED : False
FILE_ATTRIBUTE_UNPINNED : False
FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS : False

- always available
FILE_ATTRIBUTE_PINNED : True
FILE_ATTRIBUTE_UNPINNED : False
FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS : False

When FreeFileSync makes a mirror copy of a file into my OneDrive folder, the status is always available. This defeats the functionality of the Free Up Space command. I need FreeFileSync to stop setting FILE_ATTRIBUTE_PINNED = True and set it to False. Mirrored files will then show up as locally available and I can remove them using Free Up Space.