diff --git a/src/zfslib/zfslib.py b/src/zfslib/zfslib.py index dbe7dbd..11eb0f2 100644 --- a/src/zfslib/zfslib.py +++ b/src/zfslib/zfslib.py @@ -833,8 +833,9 @@ def __init__(self, row, snap_left, snap_right, get_move:bool=False): raise Exception(f"Unexpected len: {len(row)}. Row = {row}") # Derrive Move change type - if get_move and chg_type == 'R' and path_new is not None: - chg_type = 'V' + if get_move and file_type == 'F' and chg_type == 'R': + if splitPath(path)[1] != splitPath(path_new)[1]: + chg_type = 'V' # Fix issue related to https://github.com/openzfs/zfs/issues/6318 path = path.replace("\\0040", " ")