imsnif/diskonaut

Feature: show time of last scan

開放

#3 建立於 2020年6月17日

 (0 則留言) (0 個反應) (0 位負責人)Rust (93 個分叉)github user discovery
good first issuehelp wanted

倉庫指標

星標
 (3,066 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

diskonaut preserves the state of the filesystem as it was when it scanned it. If the filesystem changes while the app is running (eg. someone downloads a file into the folder diskonaut previously scanned), it will not be updated.

This feature would mean adding the timestamp of the scan to the title line on the right side.

This might cause trouble with our tests (since they are snapshot tests and we can't set the timestamp in them). So when the app the tests are running, this feature should just output instead. To do this, we can use the #[cfg(not(test))] and #[cfg(test)] configurations.

貢獻者指南