Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell's Get-ChildItem cannot see OneDrive's Online-Only files

How to retrieve in Powershell the file info of Windows 8.1's special kind of OneDrive files, the Online-only files?

While Windows Explorer provides the typical file info (like date modified, file type, and size) for all files on OneDrive, Powershell's Get-ChildItem cmdlet only "sees" those OneDrive files, that are available offline.

like image 517
wfr Avatar asked Mar 19 '23 21:03

wfr


1 Answers

Use Get-ChildItem -Force and you'll find also those items which are not available offline.

They are available as hidden files, so you need your command to show hidden files.

If I compare the attributes, on my computer, for files which are available offline and those which are online only, I can see the following:

Offline:

Archive

Online only:

Hidden, System, Archive, SparseFile, ReparsePoint, Offline
like image 172
Robert Westerlund Avatar answered Apr 09 '23 14:04

Robert Westerlund