finder

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 1

README

Finder

模拟find命令查找符合条件的文件夹并返回绝对路径的字符串切片

函数

FindAllFolders

查找目录下所有层级的文件夹

FindAllFiles

查找目录下所有层级的文件

FindAllVideos

查找目录下所有层级的视频文件

FindAllVideosInRoot

查找目录所在层级的视频文件

FindAllImages

查找目录下所有层级的图片文件

FindAllImagesInRoot

查找目录所在层级的图片文件

FindAllAudios

查找目录下所有层级的音频文件

FindAllAudiosInRoot

查找目录所在层级的音频文件

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAllAudios

func FindAllAudios(root string) []string

使用golang实现find <root> type f 命令

func FindAllAudiosInRoot

func FindAllAudiosInRoot(root string) []string

使用golang实现查找给定文件路径下的全部文件 不包含子目录

func FindAllFiles

func FindAllFiles(root string) []string

使用golang实现find <root> type f 命令,包含root文件夹本身

func FindAllFolders

func FindAllFolders(root string) []string

使用golang实现find <root> type d 命令

func FindAllFoldersInRoot added in v0.0.6

func FindAllFoldersInRoot(root string) []string

使用golang实现find <root> type d -maxdepth 1 命令 但不包含root文件夹本身

func FindAllImages

func FindAllImages(root string) []string

使用golang实现find <root> type f 命令

func FindAllImagesInRoot

func FindAllImagesInRoot(root string) []string

使用golang实现查找给定文件路径下的全部文件 不包含子目录

func FindAllMkvVideos added in v0.0.7

func FindAllMkvVideos(root string) []string

使用golang实现find <root> -type f -name "*.mkv" 命令

func FindAllVideos

func FindAllVideos(root string) []string

使用golang实现find <root> -type f 命令

func FindAllVideosInRoot

func FindAllVideosInRoot(root string) []string

使用golang实现查找给定文件路径下的全部文件 不包含子目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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