我将文件(视频/图像)存储在 chrome book 的本地文件夹中,我想存储这些文件直到达到一定的磁盘空间并删除这些文件。有没有办法在 Chrome 操作系统中以编程方式获取磁盘空间?
我检查了https://developer.chrome.com/extensions/system_storage但这些是用于外部存储设备的。
最佳答案
我相信chrome.system.storage.可以帮助您,请注意 StorageUnitInfo.type
具有以下枚举,而 fixed
是您想要的。
fixed
The storage has fixed media, e.g. hard disk or SSD.
removable
The storage is removable, e.g. USB flash drive.
unknown
The storage type is unknown.
关于google-chrome-extension - 是否有 API/方法可以以编程方式获取 chromebook 中的可用磁盘大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36848970/