File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ def __init__(self, cache_folder: pathlib.Path):
56
56
self .cache_folder = cache_folder
57
57
58
58
def get_file (self , filename : str , checksum : str ) -> CacheFile :
59
- path = self .cache_folder / filename
59
+ path = self .cache_folder . joinpath ( filename )
60
60
return CacheFile (path , checksum )
61
61
62
62
def get_file_path (self , filename : str ) -> pathlib .Path :
63
- return self .cache_folder / filename
63
+ return self .cache_folder . joinpath ( filename )
64
64
65
65
@staticmethod
66
66
def create_cache (cache_folder : pathlib .Path ):
@@ -71,7 +71,7 @@ def create_cache(cache_folder: pathlib.Path):
71
71
72
72
def get_cache (config ) -> Cache :
73
73
if SONAR_USER_HOME in config :
74
- cache_folder = pathlib .Path (config [SONAR_USER_HOME ]) / "cache"
74
+ cache_folder = pathlib .Path (config [SONAR_USER_HOME ]). joinpath ( "cache" )
75
75
else :
76
- cache_folder = pathlib .Path .home () / ".sonar/cache"
76
+ cache_folder = pathlib .Path .home (). joinpath ( ".sonar/cache" )
77
77
return Cache .create_cache (cache_folder )
You can’t perform that action at this time.
0 commit comments