diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 35862370..e38adb8c 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -346,6 +346,7 @@ def run_argparse(argv, formatter): ap2.add_argument("--unpost", metavar="SEC", type=int, default=3600*12, help="grace period where uploads can be deleted by the uploader, even without delete permissions; 0=disabled") ap2.add_argument("--no-fpool", action="store_true", help="disable file-handle pooling -- instead, repeatedly close and reopen files during upload") ap2.add_argument("--use-fpool", action="store_true", help="force file-handle pooling, even if copyparty thinks you're better off without") + ap2.add_argument("--no-symlink", action="store_true", help="duplicate file contents instead") ap2 = ap.add_argument_group('network options') ap2.add_argument("-i", metavar="IP", type=u, default="0.0.0.0", help="ip to bind (comma-sep.)") diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 24a0c317..21111253 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -1277,6 +1277,9 @@ class Up2k(object): return try: + if self.args.no_symlink: + raise Exception("disabled in config") + lsrc = src ldst = dst fs1 = bos.stat(os.path.dirname(src)).st_dev diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 661f08f5..a4eb7fbd 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -1178,6 +1178,8 @@ function up2k_init(subtle) { ebi('u2etas').style.textAlign = 'left'; } etafun(); + if (pvis.act == 'bz') + pvis.changecard('bz'); } if (flag) {