@@ -17,20 +17,20 @@ class FakeFSCache(FileSystemCache):
17
17
def __init__ (self , files : set [str ]) -> None :
18
18
self .files = {os .path .abspath (f ) for f in files }
19
19
20
- def isfile (self , file : str ) -> bool :
21
- return file in self .files
20
+ def isfile (self , path : str ) -> bool :
21
+ return path in self .files
22
22
23
- def isdir (self , dir : str ) -> bool :
24
- if not dir .endswith (os .sep ):
25
- dir += os .sep
26
- return any (f .startswith (dir ) for f in self .files )
23
+ def isdir (self , path : str ) -> bool :
24
+ if not path .endswith (os .sep ):
25
+ path += os .sep
26
+ return any (f .startswith (path ) for f in self .files )
27
27
28
- def listdir (self , dir : str ) -> list [str ]:
29
- if not dir .endswith (os .sep ):
30
- dir += os .sep
31
- return list ({f [len (dir ) :].split (os .sep )[0 ] for f in self .files if f .startswith (dir )})
28
+ def listdir (self , path : str ) -> list [str ]:
29
+ if not path .endswith (os .sep ):
30
+ path += os .sep
31
+ return list ({f [len (path ) :].split (os .sep )[0 ] for f in self .files if f .startswith (path )})
32
32
33
- def init_under_package_root (self , file : str ) -> bool :
33
+ def init_under_package_root (self , path : str ) -> bool :
34
34
return False
35
35
36
36
0 commit comments