crash.software
Projects
Pull Requests
Issues
Builds
syft
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
syft
Files
🤬
Sign In
5b9ba7d0
ROOT
/
syft
/
source
/
directory_resolver.go
Search
History
635 lines
|
ISO-8859-1
|
18 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
WindowsOS
unixSystemRuntimePrefixes
_
:
FileResolver
pathFilterFn
directoryResolver
path
:
string
currentWdRelativeToRoot
:
string
currentWd
:
string
fileTree
:
*filetree.FileTree
fileIndex
:
*file.Index
pathFilterFns
:
[]pathFilterFn
refsByMIMEType
:
map[string][]file.Reference
errPaths
:
map[string]error
addPathToIndex
(p string, info os.FileInfo)
:
(string, error)
hasBeenIndexed
(p string)
:
bool
addDirectoryToIndex
(p string, info os.FileInfo)
:
error
addFileToIndex
(p string, info os.FileInfo)
:
error
addSymlinkToIndex
(p string, info os.FileInfo)
:
(string, error)
addFileToFileIndex
(ref *file.Reference, metadata file.Metadata)
requestPath
(userPath string)
:
(string, error)
responsePath
(path string)
:
string
String
()
:
string
FilesByPath
(userPaths ...string)
:
([]Location, error)
FilesByGlob
(patterns ...string)
:
([]Location, error)
FilesByExtension
(extensions ...string)
:
([]Location, error)
FilesByBasename
(filenames ...string)
:
([]Location, error)
FilesByBasenameGlob
(globs ...string)
:
([]Location, error)
FileContentsByLocation
(location Location)
:
(io.ReadCloser, error)
isInIndex
(location Location)
:
bool
newDirectoryResolver
(root string, pathFilters ...pathFilterFn)
:
(*directoryResolver, error)
windowsToPosix
(windowsPath string)
:
(posixPath string)
posixToWindows
(posixPath string)
:
(windowsPath string)
isUnixSystemRuntimePath
(path string, _ os.FileInfo)
:
bool
isUnallowableFileType
(_ string, info os.FileInfo)
:
bool
indexAllRoots
(root string, indexer func(string, *progress.Stage) ([]string, error))
:
error
indexingProgress
(path string)
:
(*progress.Stage, *progress.Manual)
*directoryResolver
indexTree
(root string, stager *progress.Stage)
:
([]string, error)
indexPath
(path string, info os.FileInfo, err error)
:
(string, error)
isFileAccessErr
(path string, err error)
:
bool
HasPath
(userPath string)
:
bool
RelativeFileByPath
(_ Location, path string)
:
*Location
AllLocations
()
:
<-chan Location
FileMetadataByLocation
(location Location)
:
(file.Metadata, error)
FilesByMIMEType
(types ...string)
:
([]Location, error)
All occurrences
Please wait...
Page is in error, reload to recover