clair: github.com/coreos/clair/pkg/fsutil Index | Files

package fsutil

import "github.com/coreos/clair/pkg/fsutil"

Package fsutil contains utility functions for file system querying.

Index

Package Files

fsutil.go

Constants

const (
    // All doesn't filter anything
    All dirFilter = iota
    // FilesOnly filters Dir function to return only files
    FilesOnly
    // DirectoriesOnly filters Dir function to return only directories
    DirectoriesOnly
)

func Readdir Uses

func Readdir(path string, filter dirFilter) ([]string, error)

Readdir lists the files or folders under the given path and filter based on the dirFilter.

Package fsutil imports 2 packages (graph) and is imported by 1 packages. Updated 2018-11-09. Refresh now. Tools for package owners.