helper

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryPreviewOptions

type DirectoryPreviewOptions struct {
	MaxElements int
}

type FileInfo

type FileInfo struct {
	Path         string  `json:"path"`
	IsExecutable bool    `json:"is_executable"`
	IsDirectory  bool    `json:"is_directory"`
	IsHidden     bool    `json:"is_hidden"`
	Name         string  `json:"name"`
	Symlink      *string `json:"symlink"`
}

func GetDirectoryPreview

func GetDirectoryPreview(directory string, opts DirectoryPreviewOptions) ([]FileInfo, error)

Jump to

Keyboard shortcuts

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