简体   繁体   English

在Windows 8.1中开发类似于OneDrive应用程序的Windows应用程序

[英]Develop windows app like OneDrive app in windows 8.1

The OneDrive app in Windows 8.1, can let user choose "Make available offline" or "Make available online-only". Windows 8.1中的OneDrive应用程序可以让用户选择“使脱机可用”或“仅使联机可用”。

When user choose "Make available online-only", user still can see the data in windows file explorer, but the data not really store in local disk. 当用户选择“仅在线提供”时,用户仍可以在Windows文件资源管理器中看到数据,但该数据并未真正存储在本地磁盘中。 When user double click the data, OneDrive will download data from cloud to local, if computer doesn't have net, user can't open data. 当用户双击数据时,OneDrive会将数据从云下载到本地,如果计算机没有网络,则用户将无法打开数据。

Have any way to display data in windows file explorer even the data is not store in local disk...I can't find any solution or API can let me use... 即使数据没有存储在本地磁盘中,也可以通过任何方式在Windows文件资源管理器中显示数据...我找不到任何解决方案或API可以让我使用...

Though Windows itself may not support it the same way with built-in handling, you should still be able to code up a solution similar to what you were looking for. 尽管Windows本身可能无法通过内置处理以同样的方式支持它,但是您仍然应该能够编写出与所需解决方案类似的解决方案。 From what I can tell the "smart files" that OneDrive/SkyDrive were using could also be called "Placeholder Files" now. 据我所知,OneDrive / SkyDrive正在使用的“智能文件”现在也可以称为“占位符文件”。 They're basically just NTFS Reparse Points with a custom Reparse Tag Identifier associated to the file types. 它们基本上只是具有与文件类型相关联的自定义“重新分析标记标识符”的NTFS重新分析点。

See here: Reparse Points 参见此处: 重新积分

It should be noted however since it was mentioned above, that even though the old Reparse Tag identifier was deprecated, they seem to be re-implementing a version of the Placeholder files for Windows 10. Recent builds included new "ONEDRIVE" reparse tag identifiers. 但是,应该指出的是,由于上面已经提到,即使旧的Reparse Tag标识符已被弃用,它们似乎仍在重新实现Windows 10的Placeholder文件的版本。最近的版本包括新的“ ONEDRIVE” reparse标签标识符。

See here: new Reparse Tags (twitter) 看到这里: 新的Reparse标签(Twitter)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM