Merge pull request #6741 from yoff/python/model-os-path-file-accesses

Approved by RasmusWL
This commit is contained in:
CodeQL CI
2021-10-13 11:11:41 -07:00
committed by GitHub
2 changed files with 102 additions and 30 deletions

View File

@@ -27,3 +27,10 @@ def through_function(open_file):
open_file.write("foo") # $ fileWriteData="foo" getAPathArgument="path"
through_function(f)
from os import path
path.exists("filepath") # $ getAPathArgument="filepath"
path.isfile("filepath") # $ getAPathArgument="filepath"
path.isdir("filepath") # $ getAPathArgument="filepath"
path.islink("filepath") # $ getAPathArgument="filepath"
path.ismount("filepath") # $ getAPathArgument="filepath"