Skip to content

Commit 81adb7d

Browse files
committed
Python: Add tests for os.path-functions
1 parent f14e3f6 commit 81adb7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/ql/test/library-tests/frameworks/stdlib/FileSystemAccess.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ def through_function(open_file):
2727
open_file.write("foo") # $ fileWriteData="foo" getAPathArgument="path"
2828

2929
through_function(f)
30+
31+
from os import path
32+
path.exists("filepath") # $ MISSING: getAPathArgument="filepath"
33+
path.isfile("filepath") # $ MISSING: getAPathArgument="filepath"
34+
path.isdir("filepath") # $ MISSING: getAPathArgument="filepath"
35+
path.islink("filepath") # $ MISSING: getAPathArgument="filepath"
36+
path.ismount("filepath") # $ MISSING: getAPathArgument="filepath"

0 commit comments

Comments
 (0)