mirror of
https://github.com/9001/copyparty.git
synced 2026-01-04 02:25:45 +10:00
make it 5% faster
This commit is contained in:
@@ -168,6 +168,11 @@ class TestHttpCli(unittest.TestCase):
|
||||
h, ret = self.put(url)
|
||||
res = h.startswith("HTTP/1.1 201 ")
|
||||
self.assertEqual(res, wok)
|
||||
if wok:
|
||||
vp = h.split("\nLocation: http://a:1/")[1].split("\r")[0]
|
||||
vn, rem = self.asrv.vfs.get(vp, "*", False, False)
|
||||
ap = os.path.join(vn.realpath, rem)
|
||||
os.unlink(ap)
|
||||
|
||||
def can_rw(self, fp):
|
||||
# lowest non-neutral folder declares permissions
|
||||
|
||||
Reference in New Issue
Block a user