mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
tftp: support unmapped root
This commit is contained in:
parent
ee35974273
commit
01233991f3
|
@ -403,7 +403,7 @@ class Tftpd(object):
|
|||
bos.stat(ap)
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
return vpath == "/"
|
||||
|
||||
def _p_isdir(self, vpath: str) -> bool:
|
||||
try:
|
||||
|
@ -411,7 +411,7 @@ class Tftpd(object):
|
|||
ret = stat.S_ISDIR(st.st_mode)
|
||||
return ret
|
||||
except:
|
||||
return False
|
||||
return vpath == "/"
|
||||
|
||||
def _hook(self, *a: Any, **ka: Any) -> None:
|
||||
src = inspect.currentframe().f_back.f_code.co_name
|
||||
|
|
Loading…
Reference in a new issue