Compare old and new paths
(old, new)
| 182 | |
| 183 | |
| 184 | def differ_paths(old, new): |
| 185 | """Compare old and new paths""" |
| 186 | |
| 187 | if old and old.endswith(("\\", "/")): |
| 188 | old = old[:-1] |
| 189 | old = old.replace("\\", "/") |
| 190 | |
| 191 | if new and new.endswith(("\\", "/")): |
| 192 | new = new[:-1] |
| 193 | new = new.replace("\\", "/") |
| 194 | |
| 195 | return new != old |
| 196 | |
| 197 | |
| 198 | def validate_path(path): |