From 1c6ae177c9e64c6f44a34a455af760b55e5cc32d Mon Sep 17 00:00:00 2001 From: Ryan Teoh Date: Thu, 20 Feb 2025 10:36:39 -0800 Subject: [PATCH] fixes to api --- src/latch/ldata/path.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/latch/ldata/path.py b/src/latch/ldata/path.py index 0dd7d7da..39170b2a 100644 --- a/src/latch/ldata/path.py +++ b/src/latch/ldata/path.py @@ -1,5 +1,4 @@ import atexit -import os import re import shutil import sys @@ -348,9 +347,9 @@ def download( not_windows and cache and dst.exists() - and xattr.list(dst_str) is not None - and "user.version_id" in xattr.list(dst_str) - and version_id == xattr.get(dst_str, "user.version_id").decode() + and xattr.listxattr(dst_str) is not None + and "user.version_id" in xattr.listxattr(dst_str) + and version_id == xattr.getxattr(dst_str, "user.version_id").decode() ): return dst