mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
zerobyte semantics
This commit is contained in:
parent
c6c31702c2
commit
d1a03c6d17
|
@ -2231,8 +2231,11 @@ class Up2k(object):
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def _new_upload(self, job: dict[str, Any]) -> None:
|
def _new_upload(self, job: dict[str, Any]) -> None:
|
||||||
self.registry[job["ptop"]][job["wark"]] = job
|
|
||||||
pdir = os.path.join(job["ptop"], job["prel"])
|
pdir = os.path.join(job["ptop"], job["prel"])
|
||||||
|
if not job["size"] and bos.path.isfile(os.path.join(pdir, job["name"])):
|
||||||
|
return
|
||||||
|
|
||||||
|
self.registry[job["ptop"]][job["wark"]] = job
|
||||||
job["name"] = self._untaken(pdir, job["name"], job["t0"], job["addr"])
|
job["name"] = self._untaken(pdir, job["name"], job["t0"], job["addr"])
|
||||||
# if len(job["name"].split(".")) > 8:
|
# if len(job["name"].split(".")) > 8:
|
||||||
# raise Exception("aaa")
|
# raise Exception("aaa")
|
||||||
|
|
|
@ -966,6 +966,9 @@ function up2k_init(subtle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function gotallfiles(good_files, nil_files, bad_files) {
|
function gotallfiles(good_files, nil_files, bad_files) {
|
||||||
|
if (uc.fsearch && !uc.turbo)
|
||||||
|
nil_files = [];
|
||||||
|
|
||||||
var ntot = good_files.concat(nil_files, bad_files).length;
|
var ntot = good_files.concat(nil_files, bad_files).length;
|
||||||
if (bad_files.length) {
|
if (bad_files.length) {
|
||||||
var msg = L.u_badf.format(bad_files.length, ntot);
|
var msg = L.u_badf.format(bad_files.length, ntot);
|
||||||
|
|
Loading…
Reference in a new issue