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
6afbffce
ROOT
/
syft
/
internal
/
fileresolver
/
directory.go
Search
History
368 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
WindowsOS
unixSystemRuntimePrefixes
ErrSkipPath
_
:
file.Resolver
Directory
path
:
string
base
:
string
currentWdRelativeToRoot
:
string
currentWd
:
string
tree
:
filetree.Reader
index
:
filetree.IndexReader
searchContext
:
filetree.Searcher
indexer
:
*directoryIndexer
requestPath
(userPath string)
:
(string, error)
responsePath
(path string)
:
string
String
()
:
string
FilesByPath
(userPaths ...string)
:
([]file.Location, error)
FilesByGlob
(patterns ...string)
:
([]file.Location, error)
FileContentsByLocation
(location file.Location)
:
(io.ReadCloser, error)
NewFromDirectory
(root string, base string, pathFilters ...PathIndexVisitor)
:
(*Directory, error)
newFromDirectoryWithoutIndex
(root string, base string, pathFilters ...PathIndexVisitor)
:
(*Directory, error)
windowsToPosix
(windowsPath string)
:
(posixPath string)
posixToWindows
(posixPath string)
:
(windowsPath string)
*Directory
buildIndex
()
:
error
HasPath
(userPath string)
:
bool
RelativeFileByPath
(_ file.Location, path string)
:
*file.Location
AllLocations
()
:
<-chan file.Location
FileMetadataByLocation
(location file.Location)
:
(file.Metadata, error)
FilesByMIMEType
(types ...string)
:
([]file.Location, error)
All occurrences
Please wait...
Page is in error, reload to recover