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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -