File tree Expand file tree Collapse file tree
python/ql/test/library-tests/frameworks/stdlib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import builtins
22import io
3+ import os
34
45open ("filepath" ) # $ getAPathArgument="filepath"
56open (file = "filepath" ) # $ getAPathArgument="filepath"
@@ -28,13 +29,14 @@ def through_function(open_file):
2829
2930through_function (f )
3031
31- from os import path
32- path .exists ("filepath" ) # $ getAPathArgument="filepath"
33- path .isfile ("filepath" ) # $ getAPathArgument="filepath"
34- path .isdir ("filepath" ) # $ getAPathArgument="filepath"
35- path .islink ("filepath" ) # $ getAPathArgument="filepath"
36- path .ismount ("filepath" ) # $ getAPathArgument="filepath"
32+ # os. path
33+ os . path .exists ("filepath" ) # $ getAPathArgument="filepath"
34+ os . path .isfile ("filepath" ) # $ getAPathArgument="filepath"
35+ os . path .isdir ("filepath" ) # $ getAPathArgument="filepath"
36+ os . path .islink ("filepath" ) # $ getAPathArgument="filepath"
37+ os . path .ismount ("filepath" ) # $ getAPathArgument="filepath"
3738
39+ # actual os.path implementations
3840import posixpath
3941import ntpath
4042import genericpath
@@ -43,7 +45,6 @@ def through_function(open_file):
4345ntpath .exists ("filepath" ) # $ getAPathArgument="filepath"
4446genericpath .exists ("filepath" ) # $ getAPathArgument="filepath"
4547
46- import os
47-
48+ # os
4849os .stat ("filepath" ) # $ getAPathArgument="filepath"
4950os .stat (path = "filepath" ) # $ getAPathArgument="filepath"
You can’t perform that action at this time.
0 commit comments