Skip to content

nyshk97/rmtrash-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rmtrash-mac

macOS専用のコマンドラインツールで、ファイルやディレクトリをゴミ箱に移動します。

インストール方法

cargo install rmtrash-mac

使用方法

# ファイルをゴミ箱に移動
trash ファイルパス

# ディレクトリをゴミ箱に移動(確認あり)
trash -r ディレクトリパス

# ディレクトリをゴミ箱に移動(確認なし)
trash -rf ディレクトリパス

オプション

  • -r: ディレクトリを再帰的に処理
  • -f: 確認なしで強制的に処理

動作仕様

ファイルタイプ オプションなし -f のみ -r のみ -r -f
通常ファイル 無確認で移動 無確認で移動 無確認で移動 無確認で移動
ディレクトリ エラー エラー 確認して移動 無確認で移動
存在しないパス エラー エラー エラー エラー

ライセンス

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages