cli

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyTrash added in v0.0.4

func EmptyTrash()

EmptyTrash 清空回收站

func ListFiles added in v0.0.3

func ListFiles()

func PrintVersionInfo added in v0.3.5

func PrintVersionInfo(only bool)

PrintVersionInfo 打印版本信息

参数:

  • only: 是否只打印版本号

func PutFiles added in v0.0.3

func PutFiles(files []string)

PutFiles 将文件移动到回收站

  1. [文件是否存在] -- 检测目标文件列表中的文件是否存在,存在的文件继续处理,不存在的文件报错文件不存在
  2. [文件和用户回收站是否在同一分区] -- 判断目标文件和用户回收站是否在同一分区,是则将文件移动到回收站,不是则继续
  3. [文件是否在可移动设备上] -- 判断目标文件所在设备是否可移动,可移动则将文件移动到设备回收站,不可移动则报错跨文件系统操作

参数:

  • files: 需要移动的文件列表

func RestoreFromTrash added in v0.1.0

func RestoreFromTrash()

RestoreFromTrash 恢复回收站中的文件

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL