Merge branch 'main' of ssh://git.homelabbrisbane.com.au:2222/jdownie/shed
This commit is contained in:
commit
7cb691478c
@ -46,7 +46,9 @@ def rm(p):
|
||||
os.remove(p)
|
||||
|
||||
def filepath(f):
|
||||
ret = os.path.join(os.environ.get("XDG_CACHE_HOME"), f"repo.{f}")
|
||||
base = os.environ.get("XDG_CACHE_HOME")
|
||||
base = "/tmp" if base == None else base
|
||||
ret = os.path.join(base, f"repo.{f}")
|
||||
return ret
|
||||
|
||||
def is_file_recent(filepath, minutes=10):
|
||||
|
Loading…
x
Reference in New Issue
Block a user