Skip to content

Commit b54636d

Browse files
committed
[snapshot] fix ino/dev order
1 parent 71bdf62 commit b54636d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/watchdog/utils/dirsnapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def __init__(self, path, recursive=True,
205205

206206
st = stat(path)
207207
self._stat_info[path] = st
208-
self._inode_to_path[(st.st_dev, st.st_ino)] = path
208+
self._inode_to_path[(st.st_ino, st.st_dev)] = path
209209

210210
def walk(root):
211211
paths = [os.path.join(root, name) for name in listdir(root)]

0 commit comments

Comments
 (0)