MCPcopy Create free account
hub / github.com/blocksecteam/rustle / getFiles

Function getFiles

utils/core.py:7–15  ·  view source on GitHub ↗

Get all rust files in the given path

(path, ignoreTest=False, ignoreMock=False)

Source from the content-addressed store, hash-verified

5
6
7def getFiles(path, ignoreTest=False, ignoreMock=False) -> set:
8 """Get all rust files in the given path"""
9 return (
10 set(glob.glob(path + "/**/*.rs", recursive=True))
11 - set(glob.glob(path + "/**/node_modules/**/*.rs", recursive=True))
12 - set(glob.glob(path + "/**/target/**/*.rs", recursive=True))
13 - (set(glob.glob(path + "/**/*test*/**/*.rs", recursive=True)) if ignoreTest else set())
14 - (set(glob.glob(path + "/**/*mock*/**/*.rs", recursive=True)) if ignoreMock else set())
15 )
16
17
18def readFile(path) -> str:

Callers 12

audit.pyFile · 0.85
findPub.pyFile · 0.85
findStruct.pyFile · 0.85
inconsistency.pyFile · 0.85
tautology.pyFile · 0.85
lock-callback.pyFile · 0.85
unused-ret.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected