Byron/trash-rs

Can't implement `list`, `purge_all`, and `restore_all` on MacOS

开放

#8 创建于 2019年11月24日

 (35 条评论) (0 个反应) (0 位负责人)Rust (40 个派生)auto 404
help wanted

仓库指标

星标
 (247 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

It seems that there's no publicly available API on MacOS that is needed to list the contents of the trash and to permanently remove or restore items from the trash. These would be needed for list, purge_all, and restore_all accordingly, which are the features planned for version 2. These all may be possible to implement by parsing and editing the DS_Store file but as its structure is proprietary, I wouldn't want to take that approach.

All the three aforementioned functions and thereby all the added functionality of version 2 is currently implemented for both Windows and Linux. To allow users to take advantage of the new functionality on those platforms, version 2 will be released but it won't provide those functions on MacOS.

贡献者指南