windows 8.1 - API to check OneDrive file status -
is there api in windows 8.1 check status of onedrive file? know whether file has been replicated local disk or dummy representation of file in cloud doesn't take local disk space
this information can retrieved calling storagefile.properties.retrievepropertiesasync() (http://msdn.microsoft.com/en-us/library/windows/apps/hh770652.aspx)
method , passing "system.offlineavailability" (http://msdn.microsoft.com/en-us/library/windows/desktop/bb787532(v=vs.85).aspx)
in list of properties retrieved.
function return dictionary contain 1 of 3 possible values: 0 - not available offline 1 - available offline 2 - not applicatble (not skydrive/onedrive file)
Comments
Post a Comment