@@ -17,20 +17,20 @@ class FakeFSCache(FileSystemCache):
1717 def __init__ (self , files : set [str ]) -> None :
1818 self .files = {os .path .abspath (f ) for f in files }
1919
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
2222
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 )
2727
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 )})
3232
33- def init_under_package_root (self , file : str ) -> bool :
33+ def init_under_package_root (self , path : str ) -> bool :
3434 return False
3535
3636
0 commit comments