mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #7143 from RasmusWL/path-improvements
Python: Model `posixpath` and `os.stat`
This commit is contained in:
@@ -34,3 +34,16 @@ path.isfile("filepath") # $ getAPathArgument="filepath"
|
||||
path.isdir("filepath") # $ getAPathArgument="filepath"
|
||||
path.islink("filepath") # $ getAPathArgument="filepath"
|
||||
path.ismount("filepath") # $ getAPathArgument="filepath"
|
||||
|
||||
import posixpath
|
||||
import ntpath
|
||||
import genericpath
|
||||
|
||||
posixpath.exists("filepath") # $ getAPathArgument="filepath"
|
||||
ntpath.exists("filepath") # $ getAPathArgument="filepath"
|
||||
genericpath.exists("filepath") # $ getAPathArgument="filepath"
|
||||
|
||||
import os
|
||||
|
||||
os.stat("filepath") # $ getAPathArgument="filepath"
|
||||
os.stat(path="filepath") # $ getAPathArgument="filepath"
|
||||
|
||||
Reference in New Issue
Block a user