mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
cleanup
This commit is contained in:
parent
b915dfe9a6
commit
2acfab1e3f
|
@ -719,6 +719,7 @@ class CPPF(Operations):
|
||||||
self.dircache.append(cn)
|
self.dircache.append(cn)
|
||||||
self.clean_dircache()
|
self.clean_dircache()
|
||||||
|
|
||||||
|
# import pprint; pprint.pprint(ret)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def readdir(self, path, fh=None):
|
def readdir(self, path, fh=None):
|
||||||
|
@ -816,7 +817,11 @@ class CPPF(Operations):
|
||||||
# dbg("=" + repr(cache_stat))
|
# dbg("=" + repr(cache_stat))
|
||||||
return cache_stat
|
return cache_stat
|
||||||
|
|
||||||
info("=ENOENT ({})".format(hexler(path)))
|
fun = info
|
||||||
|
if MACOS and path.split('/')[-1].startswith('._'):
|
||||||
|
fun = dbg
|
||||||
|
|
||||||
|
fun("=ENOENT ({})".format(hexler(path)))
|
||||||
raise FuseOSError(errno.ENOENT)
|
raise FuseOSError(errno.ENOENT)
|
||||||
|
|
||||||
access = None
|
access = None
|
||||||
|
|
|
@ -686,7 +686,7 @@ class HttpCli(object):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
fp = os.path.join(vfs.realpath, rem)
|
fp = os.path.join(vfs.realpath, rem)
|
||||||
srv_lastmod = -1
|
srv_lastmod = srv_lastmod3 = -1
|
||||||
try:
|
try:
|
||||||
st = os.stat(fsenc(fp))
|
st = os.stat(fsenc(fp))
|
||||||
srv_lastmod = st.st_mtime
|
srv_lastmod = st.st_mtime
|
||||||
|
|
|
@ -139,7 +139,7 @@ class Up2k(object):
|
||||||
lsrc = "../" * (len(lsrc) - 1) + "/".join(lsrc)
|
lsrc = "../" * (len(lsrc) - 1) + "/".join(lsrc)
|
||||||
os.symlink(fsenc(lsrc), fsenc(ldst))
|
os.symlink(fsenc(lsrc), fsenc(ldst))
|
||||||
except (AttributeError, OSError) as ex:
|
except (AttributeError, OSError) as ex:
|
||||||
self.log("up2k", "cannot symlink; creating copy")
|
self.log("up2k", "cannot symlink; creating copy: " + repr(ex))
|
||||||
shutil.copy2(fsenc(src), fsenc(dst))
|
shutil.copy2(fsenc(src), fsenc(dst))
|
||||||
|
|
||||||
def handle_chunk(self, wark, chash):
|
def handle_chunk(self, wark, chash):
|
||||||
|
|
Loading…
Reference in a new issue