2
2
import io
3
3
import os
4
4
5
- open ("filepath " ) # $ getAPathArgument="filepath "
6
- open (file = "filepath " ) # $ getAPathArgument="filepath "
5
+ open ("file " ) # $ getAPathArgument="file "
6
+ open (file = "file " ) # $ getAPathArgument="file "
7
7
8
8
o = open
9
9
10
- o ("filepath " ) # $ getAPathArgument="filepath "
11
- o (file = "filepath " ) # $ getAPathArgument="filepath "
10
+ o ("file " ) # $ getAPathArgument="file "
11
+ o (file = "file " ) # $ getAPathArgument="file "
12
12
13
13
14
- builtins .open ("filepath " ) # $ getAPathArgument="filepath "
15
- builtins .open (file = "filepath " ) # $ getAPathArgument="filepath "
14
+ builtins .open ("file " ) # $ getAPathArgument="file "
15
+ builtins .open (file = "file " ) # $ getAPathArgument="file "
16
16
17
17
18
- io .open ("filepath " ) # $ getAPathArgument="filepath "
19
- io .open (file = "filepath " ) # $ getAPathArgument="filepath "
18
+ io .open ("file " ) # $ getAPathArgument="file "
19
+ io .open (file = "file " ) # $ getAPathArgument="file "
20
20
21
21
f = open ("path" ) # $ getAPathArgument="path"
22
22
f .write ("foo" ) # $ getAPathArgument="path" fileWriteData="foo"
@@ -30,21 +30,35 @@ def through_function(open_file):
30
30
through_function (f )
31
31
32
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"
33
+ os .path .exists ("path" ) # $ getAPathArgument="path"
34
+ os .path .exists (path = "path" ) # $ getAPathArgument="path"
35
+
36
+ os .path .isfile ("path" ) # $ getAPathArgument="path"
37
+ os .path .isfile (path = "path" ) # $ getAPathArgument="path"
38
+
39
+ os .path .isdir ("s" ) # $ getAPathArgument="s"
40
+ os .path .isdir (s = "s" ) # $ MISSING: getAPathArgument="s"
41
+
42
+ os .path .islink ("path" ) # $ getAPathArgument="path"
43
+ os .path .islink (path = "path" ) # $ getAPathArgument="path"
44
+
45
+ os .path .ismount ("path" ) # $ getAPathArgument="path"
46
+ os .path .ismount (path = "path" ) # $ getAPathArgument="path"
38
47
39
48
# actual os.path implementations
40
49
import posixpath
41
50
import ntpath
42
51
import genericpath
43
52
44
- posixpath .exists ("filepath" ) # $ getAPathArgument="filepath"
45
- ntpath .exists ("filepath" ) # $ getAPathArgument="filepath"
46
- genericpath .exists ("filepath" ) # $ getAPathArgument="filepath"
53
+ posixpath .exists ("path" ) # $ getAPathArgument="path"
54
+ posixpath .exists (path = "path" ) # $ getAPathArgument="path"
55
+
56
+ ntpath .exists ("path" ) # $ getAPathArgument="path"
57
+ ntpath .exists (path = "path" ) # $ getAPathArgument="path"
58
+
59
+ genericpath .exists ("path" ) # $ getAPathArgument="path"
60
+ genericpath .exists (path = "path" ) # $ getAPathArgument="path"
47
61
48
62
# os
49
- os .stat ("filepath " ) # $ getAPathArgument="filepath "
50
- os .stat (path = "filepath " ) # $ getAPathArgument="filepath "
63
+ os .stat ("path " ) # $ getAPathArgument="path "
64
+ os .stat (path = "path " ) # $ getAPathArgument="path "
0 commit comments