Skip to content

Commit

Permalink
Bug fix for new move feature
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaScriptDude authored May 28, 2024
1 parent 48f17d8 commit a5f1fd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zfslib/zfslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", " ")
Expand Down

0 comments on commit a5f1fd5

Please sign in to comment.