diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 487bec87b..86cc92969 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -1317,7 +1317,7 @@ class Up2k(object): ANYWIN or UNIX or "hist_cow" in flags or "up2k.db" in os.listdir(histpath) ): try: - if self.fstab.get(ptop)[0] != "btrfs": + if self.fstab.get(histpath)[0] != "btrfs": raise Exception() runcmd([b"chattr", b"-c", fsenc(histpath)], 1) # compression and... runcmd([b"chattr", b"+C", fsenc(histpath)], 1) # no-cow are incompat